出于某种原因,我的警报不起作用?如果我使用NSLog(@" %@ ", url)
它的罚款......但这里没有警报:
- (void)alertURL:(NSURL *)url {
UIAlertView *someError = [[UIAlertView alloc] initWithTitle: url message: @"Error sending your info to the server" delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil];
[someError show];
[someError release];
}
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
[self alertURL:url];
return YES;
}
谁能指出我出了什么问题:(