今天刚好需要添加一个圆角的view。
必须先导入头文件。
#import <QuartzCore/QuartzCore.h>
bgView.layer.cornerRadius = cornerRadiusInPixels;//设置角度大小
bgView.layer.masksToBounds = YES;
bgView.opaque = NO;
Powered by: 博客园 Copyright © 2024 Warrior Sun Powered by .NET 8.0 on Kubernetes