iOS开发之应用内检测手机锁屏,解锁状态

iPhone的锁屏监测分为两种方式监听: 1. 程序在前台,这种比较简单。直接使用Darwin层的通知就可以了: #import <notify.h> #define NotificationLock CFSTR("com.apple.springboard.lockcomplete") #define NotificationChange CFSTR("com.apple.springboard
相关文章
相关标签/搜索