Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想捕获通过 iPhone 的所有网络接口和特定接口发送/接收的字节总数。我没有从谷歌那里找到任何类似代码的帮助。有没有人可以为此提供有关目标 C 代码的帮助?
这是不可访问的信息,如果您尝试在设备上访问此信息,则会违反私有框架规则。
所以恐怕这是不可能的。
我不认为你能做到。正如iOS技术概述所提到的,你描述的功能是核心服务级别的,在官方文档中没有找到。它可能有一些私有 API,但 Apple 肯定会阻止您使用它们。
所以,我很抱歉。