ios 后台进程弹窗

// http://iphonedevwiki.net/index.php/CFUserNotification
// https://kunnan.github.io/2018/05/14/com.apple.storeservices/
#include <CoreFoundation/CFUserNotification.h>
const void* keys[] = {
kCFUserNotificationAlertTopMostKey,
kCFUserNotificationAlertHeaderKey,
kCFUserNotificationAlertMessageKey
};
const void* values[] = {
kCFBooleanTrue,
CFSTR("Title"),
CFSTR("Message")
};
CFDictionaryRef dict = CFDictionaryCreate(NULL, keys, values,
sizeof(keys)/sizeof(*keys),
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks);
SInt32 err = 0;
CFUserNotificationRef notif = CFUserNotificationCreate(0,
0, kCFUserNotificationPlainAlertLevel, &err, dict);
if (notif) CFRelease(notif);
CFRelease(dict);

ios 后台进程弹窗

上一篇:call与apply以及a的索引问题


下一篇:Android Studio代码自动检测错误提示