R.E.M. Web Development

Getting the Height of the StatusBar in iOS

Here's the snippet:

 

CGFloat getStatusBarHeight(){
CGSize statusBarSize = [[UIApplication sharedApplication] statusBarFrame].size;
return MIN(statusBarSize.width, statusBarSize.height);
}