标签: objective-c ios7 replace nsstring xcode5
简单的代码不起作用。
此代码适用于我的iPhone 4,但在我的iPad Air上无效??
NSLog(@"%@", textField.text); textField.text = [textField.text stringByReplacingOccurrencesOfString:@",," withString:@","]; NSLog(@"%@", textField.text);
控制台日志: