Skip to content
Search

IOS:UIImage

lastmod 2018-08-17created 2014-02-283 edits

A UIImage object is a high-level way to display image data. You can create images from files, from Quartz image objects, or from raw image data you receive. The UIImage class also offers several options for drawing images to the current graphics context using different blend modes and opacity values.

Resizable Image

To stretch an image like Android's 9patch, use the following method.

[[UIImage imageNamed:@"bar_music_progress_all.png"]
                         resizableImageWithCapInsets:UIEdgeInsetsMake(34, 16, 36, 17)];

Favorite site