Since the red/blue glowing banner will block quite a lot of the interface. http://d.pr/SfgW
This gives you the height of the status bar:
CGFloat statusBarHeight = [[UIApplication sharedApplication] statusBarFrame].size.height;
With Personal Hotspot enabled, it returns 40, and returns 20 otherwise.
The statusbar height is 40 even when you have an active call by pressing the home button durring a phone call, therefore you can not determine whether or not the personal hotspot is on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With