[Solved] Replace occurrences of NSString with `’` to `\’`
Note: \ is escape character in objective c. NSString *s = @”This is Testing Mode and we are testing just Details of this Ladies’ Market place”; NSString *r = [s stringByReplacingOccurrencesOfString:@”‘” withString:@”\\'”]; 0 solved Replace occurrences of NSString with `’` to `\’`