Categories
Mac Tips and Tricks

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 5, you need to add a retina version of the launcher image. It should be […]

Categories
Mac Tips and Tricks

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;

Categories
Mac Tips and Tricks

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. Select “Show Item Info”, remember to check “Use as Defaults” which will make all folders […]

Categories
Android

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>