0
我是新来的编码,并想知道我可能如何能够设置一条警报消息条件语句。所以我有这个至今:UIAlertView条件statmenst(如果其他??)
mapView.showsUserLocation = YES;
NSString *title = [[NSString alloc] initWithFormat:
@"Alert"];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle: title message: @"I would like to use your location." delegate:self cancelButtonTitle:@"Allow" otherButtonTitles:@"Don't Allow", nil];
基本上我想如果让选择,运行showuserlocation ......否则NO把一个if else语句中 。
我该怎么做?
谢谢...