明天实践一下

来源:互联网 发布:淘宝网购物护肤品 编辑:程序博客网 时间:2024/06/05 16:29
 
NSImageView *view = your view;[view setWantsLayer: YES]; // edit: enable the layer for the view. Thanks omzview.layer.borderWidth = 1.0;view.layer.cornerRadius = 8.0;view.layer.masksToBounds = YES;You can also modify the borderWidth and borderColor properties