在IOS7中不推荐使用GraphicsServices中的GSCopyPurpleNamedPort(appId),替代方法是什么? [英] With GSCopyPurpleNamedPort(appId) in GraphicsServices deprecated in IOS7, what is the alternative approach?

查看:486
本文介绍了在IOS7中不推荐使用GraphicsServices中的GSCopyPurpleNamedPort(appId),替代方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在IOS7中发送gsevent。我从这里开始:如何在IOS 5及以上版本中找到最前端应用程序的紫色端口?

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?

我工作正常对于IOS 4,5,6,现在我正在开发IOS7测试版。我发现私有API已被更改。 GSCopyPurpleNamedPort(appId)的结果始终为0.

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.

那么如何获取当前正在运行的IOS7应用程序的紫色端口,任何人都有任何想法?

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

推荐答案

查看控制台日志,是否有任何内容。

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

最有可能(这是一个猜测),他们用一些权利保护它,因为你的应用程序没有它,你将获得0结果。

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.

这篇关于在IOS7中不推荐使用GraphicsServices中的GSCopyPurpleNamedPort(appId),替代方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆