How to monitoring App running in the foreground in iOS8?use the PrivateFrameworks SpringBoardServices
问题 Everyone Great God!I really need help~ Before iOS8,I use the PrivateFrameworks SpringBoardServices monitoring the App running in foreground is fine. Like the following code: #define SPRINGBOARDPATH "/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices" .... +(void) monitoringFrontApp { mach_port_t *port; void *uikit = dlopen(SPRINGBOARDPATH, RTLD_LAZY); int (*SBSSpringBoardServerPort)() = dlsym(uikit, "SBSSpringBoardServerPort"); port = (mach_port_t *