Tiling a UIImageView using resizeableImageWithCapInsets:resizingMode?
问题 I'm using the following code to try to create a tiled image with cap insets, and seeing the image below as the results in the simulator. My source image is 145x83 pixels in size, and shown here too. What am I doing wrong? SOURCE IMAGE: RESULTS IN SIMULATOR: CODE: - (void)viewDidLoad { [super viewDidLoad]; UIImage *cloudImage = [UIImage imageNamed: @"cloud.png"]; [cloudImage resizableImageWithCapInsets: UIEdgeInsetsMake(10, 10, 10, 10) resizingMode: UIImageResizingModeTile]; UIImageView