1.关于UIImage的resizable capInsets属性
This technique is often used to create variable-width buttons, which retain the same rounded corners but whose center
region grows or shrinks as needed.
For example, you can use this method to create a background image for a button withborders andcorners: when
the button is resized, the corners of the image remain unchanged,
but the borders and center of the image expand to cover
the new size.
当我们在创建变宽按钮时,往往保持按钮的圆角,只是让......
阅读全文