Resizable images require a minimum deployment goal of iOS 7

In Xcode 5, when the image is sliced, a warning appears as Object Directory Warning: Do resized images require a minimum iOS 7 deployment target ?

The goal of the project deployment is iOS 6.

Is this cut only available for iOS 7? If so, how to do it for iOS 6.

+4
source share
1 answer

To do this for iOS 6, you need to use resizable APIs.

Sort of...

UIImage *normalImage = [UIImage imageNamed:@"myImageWithAStretchyInside"];
UIImage *resizableImage = [normalImage resizableImageWithCapInsets:UIEdgeInsetsMake(10, 5, 10, 5)];

normalImagewill not change correctly. resizableImagewill be.

The order of the insertion edges top, left, bottom, right.

+3
source

Source: https://habr.com/ru/post/1534628/