Apple和私有API [英] Apple and private APIs

查看:115
本文介绍了Apple和私有API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

既然公众知道App Store提交的内容正在使用私有API进行测试,我需要问一个问题......究竟什么是私有API以便我可以避免使用它们?

Now that it's public knowledge that App Store submissions are being tested for use of private APIs, I need to ask the question... what exactly is a private API so that I may avoid them?

推荐答案

私有API是SDK中未记录的API。例如,框架类可能声明一个不打算由外部开发人员使用的方法。不保证私有API的行为。您甚至无法确定该方法将在未来的平台更新中存在。它的声明可能在公开分发的SDK头文件中不可用。如果您坚持使用SDK文档中公开定义的内容,那么您就可以了。

A private API is an API that is not documented in the SDK. For instance, a framework class might declare a method that is not intended to be used by outside developers. The behavior of a private API is not guaranteed. You can't even be sure that the method will be there in the future updates of the platform. Its declaration is probably not available in publicly distributed SDK header files. If you stick to things publicly defined in the SDK documentation, you'll be OK.

这篇关于Apple和私有API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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