iOS之UIView加边框及边框颜色

来源:互联网 发布:客家话输入软件 编辑:程序博客网 时间:2024/05/22 15:41
引用库:#import <QuartzCore/QuartzCore.h>使用://添加边框和提示CGRect frameRect = CGRectMake(20, 90, self.window.frame.size.width-40, self.window.frame.size.height-180);UIView *frameView = [[UIView alloc] initWithFrame:frameRect] ;frameView.layer.borderWidth = 1;frameView.layer.borderColor = [[UIColor whiteColor] CGColor];

0 0
原创粉丝点击