whenever a hotspot or other notification appears, the status of the BarFrame will become 40px high.
CGRect rect; rect = [[UIScreen mainScreen] bounds]; // Get screen dimensions NSLog(@"Bounds: %1.0f, %1.0f, %1.0f, %1.0f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); rect = [[UIScreen mainScreen] applicationFrame]; // Get application frame dimensions (basically screen - status bar) NSLog(@"App Frame: %1.0f, %1.0f, %1.0f, %1.0f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); rect = [[UIApplication sharedApplication] statusBarFrame]; // Get status bar frame dimensions NSLog(@"Statusbar frame: %1.0f, %1.0f, %1.0f, %1.0f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
user1288192
source share