surnameField.text = "Fal à èà ò l'opo";
// remove space and apostrophe
NSString *surnarmeInput = [[surnameField.text stringByReplacingOccurrencesOfString:@" " withString:@""] stringByReplacingOccurrencesOfString:@"'" withString:@""];
我会删除重音符号。删除字符串的所有口音
结果 “Falaeaolopo”
小心,这不仅删除口音,删除其他字符,如西班牙字母'ñ'例如。 – jherran