overboming overboming - 1 year ago 100
iOS Question

How to detect whether personal wifi hotspot or recording is undergoing on iOS?

Since the red/blue glowing banner will block quite a lot of the interface. http://d.pr/SfgW

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download