为什么这在 5.1 模拟器中不起作用,但在 4.2 4.3 5.0 中起作用?
OSXLion 10.7.4 XCode 4.3.3
if ([email.text rangeOfString:@"@"].location == NSNotFound) {
UIAlertView *alert =[[UIAlertView alloc] initWithTitle:@"Email" message:@"Please provide email address" delegate:nil cancelButtonTitle:@"Cool" otherButtonTitles:nil];
[alert show];
}
else {
work...work...work...
谢谢您的帮助。