I have written code to get the screen resolution like this.
CGRect screenRect = [[UIScreen mainScreen] bounds];
CGFloat screenWidth = screenRect.size.width;
CGFloat screenHeight = screenRect.size.height;
The result of IPAD Air is like this for above code.
screenWidth is ------->>> 1024.000000 screenHeight is ------->>> 768.000000
But the actual size is this 2048×1536.
Kindly someone help me out for this problem.
Thanks in advance.