开发者

How to get iPad/iPhone Cellular Network Data >Sent/Received Usage so my app doesn't kill users Data Plan

开发者 https://www.devze.com 2022-12-29 20:54 出处:网络
The iPad is coming to the Uk and so are the expensive data plans. My app downloads large pdf files. I prompt the user if they are on 3g if they wish to continue but it there any way to access the IPho

The iPad is coming to the Uk and so are the expensive data plans.

My app downloads large pdf files.

I prompt the user if they are on 3g if they wish to continue but it there any way to access the IPhone setting for data downloaded so I could do a before/after.开发者_开发知识库

Im looking for

IPhone > Settings > General > Usage > Cellular Network Data > Sent/Received


There's no way to access this information from inside your application. You could just measure the size of the file(s) you download, and display that.


On 3.x, these are got using the private functions CTRegistrationDataCounterGet***Statistics in Core Telephony framework.

(And even Core Telephony becomes public in 4.0, this is still a private function.)

0

精彩评论

暂无评论...
验证码 换一张
取 消