Opacity icon

Using Images in iOS Apps

Using your images in an iOS app is usually very easy. When you use a PNG image, your image will automatically be optimized for size and performance when being drawn on the iOS. You can create an image in your application's package with [UIImage imageNamed:@"imageFile"] (note that you must include the file extension).

Tab Bar Images should be used with a UITabBarController or UITabBar. Toolbar Images should be used with a UIToolbar, UINavigationController, or UINavigationBar.

You can deploy buttons in your iOS application with [[UIImage imageNamed:@"buttonImage"] stretchableImageWithLeftCapWidth:16.0 topCapHeight:0.0]. This image can then be any width, as shown in the iOS Sliced Image Preview.