doorxp-blog

doorxp.com

iOS应用内监听wifi的变化

Apple 设备可在用户不感知的情况下进行wifi的切换,如果我们在App 内部需要感知设备wifi切换的变化,可以在 Darwin Notify Center 中注册监听 kNotifySCNetworkChange 通知,如下:static void onNotifyCallback(CFNotificationCenterRef center,          &nb

THEOS tool openurl

CF_EXTERN_C_BEGIN int SBSLaunchApplicationWithIdentifier(CFStringRef bid, BOOL flags); bool SBSProcessIDForDisplayIdentifier(CFStringRef id, pid_t *pid); bool SBSOpenSensitiveURL(CFURLRef url); bo

Powered By Z-BlogPHP 1.5.1 Zero

Copyright doorxp.com Rights Reserved.