UIAlertView *alertView = [[UIAlertView alloc] initWithTitle"open app" message" backgr..." delegate:nil cancelButtonTitle"OK" otherButtonTitles:nil];
[alertView show];
应用程序在后台运行时如何显示警报?
Best Answer-推荐答案 strong>
使用 UILocalNotification 当您的应用在后台时。
UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.alertBody = @"Your message";
notification.alertAction = @"Open app";
[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
关于ios - 当应用程序在后台运行时显示 UIAlert?,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/15702730/
|