overboming overboming - 4 days ago 6
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

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.

Comments