Possible Duplicate:
Track data usage
how can we get the iphone wifi and cellularv datausage like data sent and receive using wifi and wwan.
Possible Duplicate:
Track data usage
how can we get the iphone wifi and cellularv datausage like data sent and receive using wifi and wwan.
If you use CFNetwork classes for network communication, you can record data usage for your application, as http://allseeing-i.com/ASIHTTPRequest/ does for throttling bandwidth.
For global data usage, I do not believe that is available in the iOS SDK, but some folks seem to have dropped down to accessing the ifconfig for this: