简体   繁体   中英

Display CFUserNotification on iPhone lock screen

I am developing an iPhone app that need to display some message on lock screen. I have tried to use local notification or CFUserNotification but neither of them can display the message on top of the lock screen. For CFUserNotification I have tried kCFUserNotificationAlertTopMostKey (refer this similar question ) but it still not work. I am not going to hook springboard since my phone is not jailbreak. I have found an app do implement it and I have tested on my none-jailbreak iPhone iOS 6.0, don't know how to implement this.

Any help much appreciated.

[dict setObject:[NSNumber numberWithBool:YES] forKey:(NSString *)kCFUserNotificationAlertTopMostKey];

确实有效

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM