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語句中 。
我該怎麼做?
謝謝...