我想知道如何将此属性用于UIImageVIEw.
解决方法 如Karol Kozub在 this article中所述,拉伸属性非常简单:总结The fraction of the original image left without stretching on the left
is specifIEd by XThe fraction of the original image that gets @R_520_4041@ in the x-axis
is specifIEd by WIDthThe fraction of the original image left without stretching on the
right is equal to 1 – X – WIDthIf we use 0 for WIDth the @R_520_4041@ area will interpolate between
the last pixel of the left part and the first pixel of the right partThe y-axis works analogously
以上是内存溢出为你收集整理的ios – UIImageView的拉伸属性有什么用.我如何使用这个属性.全部内容,希望文章能够帮你解决ios – UIImageView的拉伸属性有什么用.我如何使用这个属性.所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)