iOS

Getting the Height of the StatusBar in iOS

By Niall Kader1 min read

Here's the snippet:

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