简体   繁体   中英

QuartzCore not drawing corner radius

I added the QuartzCore framework to my ios 5.0 project and then tried

[self layer] setCornerRadius:10.0f];

and nothing happens to the view; it still a rectangle. What should I check?

尝试将mask设置为bounds属性。

self.layer.maskToBounds = YES;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM