现在的位置: 首页 > 综合 > 正文

UITextView 边框的设置

2017年12月09日 ⁄ 综合 ⁄ 共 209字 ⁄ 字号 评论关闭

1 导入QuartzCote框架 

#import <QuartzCore/QuartzCore.h>

2. 设置边框

        input_title.layer.borderColor = [[UIColor blackColor] colorWithAlphaComponent:.2].CGColor;
        input_title.layer.borderWidth =1.0;
        input_title.layer.cornerRadius =5.0;

抱歉!评论已关闭.