[英]How to add an UIView to the front most view of the whole iOS in the tweak application?
[英]How to get the instance(UIApplication) of the front most application from SpringBoard tweak in iOS?
我需要获取当前最前面的应用程序的UIApplication
实例。我使用[UIApplication sharedApplication]
但仅获取SpringBoard
的实例,有人知道我该怎么做吗?谢谢。
不同的进程(应用程序)位于不同的内存空间中。 您无法从SpringBoard应用程序中的其他正在运行的应用程序中访问类。 您需要将代码注入尝试与之交互的应用程序中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.