ios获取GPRS和WiFi流量的代码

时间:2015-09-27 13:02:50
【文件属性】:
文件名称:ios获取GPRS和WiFi流量的代码
文件大小:39KB
文件格式:ZIP
更新时间:2015-09-27 13:02:50
iphone开发 流量统计 GPRS WiFi 包含两个类文件:TrafficStatistic.h和TrafficStatistic.m; +(int) getGprsFlowIOBytes; +(int) getWifiFlowIOBytes; +(NSString*) bytesToString:(int) bytes;
【文件预览】:
TrafficStatistic
----TrafficStatistic()
--------main.m(345B)
--------TrafficStatistic-Info.plist(1KB)
--------TrafficStatistic.h(326B)
--------SecondViewController.m(1011B)
--------AppDelegate.h(383B)
--------AppDelegate.m(3KB)
--------TrafficStatistic-Prefix.pch(335B)
--------second@2x.png(130B)
--------FirstViewController.m(1KB)
--------first.png(253B)
--------FirstViewController.h(590B)
--------first@2x.png(402B)
--------second.png(128B)
--------en.lproj()
--------SecondViewController.h(236B)
--------TrafficStatistic.m(3KB)
----TrafficStatisticTests()
--------TrafficStatisticTests-Info.plist(702B)
--------TrafficStatisticTests.m(485B)
--------TrafficStatisticTests.h(254B)
--------en.lproj()
----TrafficStatistic.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(23KB)
--------xcuserdata()

网友评论

  • 这个是监控整个手机的. 请教一下 有没有监控自己的APP 使用了多少流量的方法?
  • 这个资料不错,可以运行
  • 感觉很实际流量有点偏差,不过值得借鉴。
  • 初学可以,不过大家常用asi
  • 可以控制WIFI断开和连接吗
  • 还不错 就是具体不太清楚
  • 不错,不过不知道对不对
  • 可以获取流量信息
  • 测试了一下,还是有点问题,分辨的不是很准
  • 不是我要的,不过还是谢谢了