I am trying to replace instances of 's with s or alternatively instances of s with 's. However, the result of the code below is an empty string. What could I be doing wrong?
NSString *myStr = @"Eat at Joe's";
NSString *newStr = [myStr stringByReplacingOccurrencesOfString:@"\'s" withString:@"s"];
//edited as per Vadian
NSLog(@"newStr:%@",newStr); //logs as newStr: