Hello i want to get the width and height of my main view. I want the correct value in landscape or portrait mode. I\'ve tried the following:
NSLog(@\"aaa
Try this :
UIWindow* window = [UIApplication sharedApplication].keyWindow; NSLog(@"%f",window.frame.size.width);