To get the dimensions of the iPhone or iPad screen you can do the following in xcode: CGRect screenRect = [[UIScreen mainScreen] bounds]; CGFloat screenWidth = screenRect.size.width; CGFloat screenHeight = screenRect.size.height;
Tag: ipad
Xcode Add iPad Compatibility
To add iPad compatibility in Xcode do the following: In Xcode 4 after opening select your project in the Project Navigator and select your target. Go to the summary tab and select “Universal” under Devices. For Xcode 3 take look at this blogpost.