首页 新闻 赞助 找找看

使用苹果私有API 只在模拟器有效,真机无效的问题

0
悬赏园豆:100 [待解决问题]

我使用的是 SpringBoardServices这个私有库,通过bundleID去打开应用程序,但是结果只在模拟器上有效,真机上无效
附上代码

void* sbServices = dlopen("/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/SpringBoardUIServices", RTLD_LAZY);

  int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier");

  SBSLaunchApplicationWithIdentifier((__bridgeCFStringRef)bundleId, NO);

北纬27的主页 北纬27 | 初学一级 | 园豆:102
提问于:2015-07-16 11:13
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册