UIView添加圆角边框

完整代码如下:

    textView.layer.borderColor = [UIColorgrayColor].CGColor;

    textView.layer.borderWidth =1.0;

    textView.layer.cornerRadius =5.0;

需要添加头文件:

#import <QuartzCore/QuartzCore.h>

posted @ 2013-01-23 17:59  废弃账号  阅读(168)  评论(0编辑  收藏  举报