Using stretchable images in Xcode storyboards

前端 未结 5 1070
慢半拍i
慢半拍i 2020-12-22 21:02

I\'m using storyboards to layout my view controllers and I would like to use stretchable images for my buttons (so that I don\'t need to generate several images with differe

5条回答
  •  离开以前
    2020-12-22 21:47

    Use the Xcode Slicing feature to specify the dimensions of a resizable center area of the image and to optionally specify end caps, which are areas of the image that should not be filled by the resizable area. See About Asset Catalogs

提交回复
热议问题