XCode images.assets asset catalog slicing been ignored and images still distored

asset-catalog, button, ios7, resize, xcode

Solution

Asset catalog was introduced with Xcode 5 but to use the image slicing features of the asset catalog your deployment target must be set to iOS7. If your target is set to iOS 6 this may be the cause of your problem. See similar post where person answered their own question. How do you use an asset catalog image's slicing information programmatically?

Problem

I'm having trouble with using slicing in the Xcode image catalog. I have the image in an asset catalog, with the image named 'SquareReactionButtonCrisp' in that catalog. In my xib, I reference this name to set it as the background. And yet as I resize this button in the xib and rebuild, the image is stretched rather than it expanding from the slice lines. Any ideas? Screenshots attached. Thanks, Sam

Original source

Related problems