开发者

UIImageView changing when app is run

开发者 https://www.devze.com 2023-01-26 04:04 出处:网络
I have a UIImageView that has some stuff on the edges that I don\'t want to show.So in IB I just pulled in the edges of the bord开发者_JS百科er and made the view mode \"center\" so it clips off the ed

I have a UIImageView that has some stuff on the edges that I don't want to show. So in IB I just pulled in the edges of the bord开发者_JS百科er and made the view mode "center" so it clips off the edges. But when I run the app, it shows them. Any specific settings or BOOL's I should be looking at for this?


Yep: the clipsToBounds property. If that doesn't work, try its layer's masksToBounds property.

0

精彩评论

暂无评论...
验证码 换一张
取 消