UIAlertView *alertView = [[UIAlertView alloc] initWithTitle"open app" message" backgr..." delegate:nil cancelButtonTitle"OK" otherButtonTitles:nil];
[alertView show];
应用程序在后台运行时如何显示警报?
使用 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/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |