在 iOS 7.0 及以下版本中,SBFrontmostApplicationDisplayIdentifier
属性可以从 Springboard 框架获取当前前台运行的应用程序信息。但是这种功能在 iOS 8 中被阻止了(因为被认为是漏洞,请参见专门介绍此漏洞的 Common Vulnerabilities and Exposures 页面here)。
有没有人知道在 iOS 8 上有什么替代方法?
在 iOS 7.0 及以下版本中,SBFrontmostApplicationDisplayIdentifier
属性可以从 Springboard 框架获取当前前台运行的应用程序信息。但是这种功能在 iOS 8 中被阻止了(因为被认为是漏洞,请参见专门介绍此漏洞的 Common Vulnerabilities and Exposures 页面here)。
有没有人知道在 iOS 8 上有什么替代方法?
由于发现了漏洞,因此在iOS 8上无法进行此操作。更多信息请参见:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4361