这里是新鲜和绿色的新手。我刚开始编程,并且已经被UIAlert卡住了。我在这个网站上搜索过,但是有很多帖子,而且我说我对这些都有点新鲜,所以我不知道该找什么。这是我的。UIAlert不显示
-(void)showError {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
message:@"Please try again later. Have a nice day."
delegate:nil
cancelButtonTitle:@"Dismiss"
otherButtonTitles:nil];
}
你需要调用'[警报显示]'如果你想实际显示警报。 – rmaddy
在发布像这样的问题之前,请阅读'UIAlertView'的文档。 – rmaddy
您是否搜索过它;即使在SO?因为有很多UIAlertView的问题和答案。并遵循@ rmaddy的建议。 :) – Rashad