Tag: dimension

Xcode Add iPhone 5 Dimension?

If you want to add iPhone 5 dimension remember to update to the newest iOS 6 sdk. When you compile you might run into this error first, Xcode Missing Retina 4 Launch Image. To enable your apps to work with iPhone

Tagged with: , ,

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;

Tagged with: , , ,

Mac Show Image Dimension

Mac does not display file information by default. You can change this so it will show the image dimension in Finder, Windows and Desktop. In Finder go to the menu View -> Show View Option or press Cmd + J.

Tagged with: , ,

Android SetTextSize From Dimen

Setting the TextSize of your TextView from a dimension resource might not work at first. When setting make sure to use the getResource() ¬†text.setTextSize(getResources().getDimension(R.dimen.textsize)); dimens.xml <?xml version=”1.0″ encoding=”utf-8″?> <resources> <dimen name=”textsize”>24sp</dimen> </resources>

Tagged with: , ,