Blog Archives

Xcode Dimensions Of The Screen In iOS

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;

Posted in Mac, Tips and Tricks Tagged with: , , ,

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

Posted in Mac, Tips and Tricks Tagged with: , ,