With GSCopyPurpleNamedPort(appId) in GraphicsServices deprecated in IOS7, what is the alternative approach? [closed]

风流意气都作罢 提交于 2019-11-29 04:13:20

问题


I want to send gsevent in IOS7. Which I follow from here:How to find the purple port for the front most application in IOS 5 and above?

I got it working for IOS 4,5,6, now I am working on IOS7 beta. I found out that the private API has been changed. The result of GSCopyPurpleNamedPort(appId) is always 0.

So how do I get the purple port of the current running application for IOS7, anyone has any ideas?


回答1:


Take a look in the console logs, whether it says anything.

Most likely (it's a guess), they protected it with some entitlement and since your application doesn't have it, you will get 0 as result.



来源:https://stackoverflow.com/questions/17573572/with-gscopypurplenamedportappid-in-graphicsservices-deprecated-in-ios7-what-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!