surnameField.text = "Fal à èà ò l'opo";
// remove space and apostrophe
NSString *surnarmeInput = [[surnameField.text stringByReplacingOccurrencesOfString:@" " withString:@""] stringByReplacingOccurrencesOfString:@"'" withString:@""];
I would remove also accents.
Result “Falaeaolopo”
which will remove all the accents..To remove all spaces
First part of removing accent, code copied from dreamlax’s answer in this thread..