这里是新鲜绿色的新手。我刚开始编程并且已经被 UIAlert 困住了。我在这个网站上搜索过,但是有太多的帖子,正如我所说的,我对这一切有点陌生,所以我不知道真正要寻找什么。这就是我的。
-(void)showError {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
message:@"Please try again later. Have a nice day."
delegate:nil
cancelButtonTitle:@"Dismiss"
otherButtonTitles:nil];
}
最佳答案
需要做的
[alert show];
呈现
关于ios - UIAlert 不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22160774/