UITextView.layer.cornerRadius = 6;
UITextView.layer.masksToBounds = YES;
角度可以自己调
需要注意,如果使用上面的东西的话,要加上头文件:
#import <QuartzCore/QuartzCore.h>
如果没加编译报错:
erro:request for member 'cornerRadius' in somenthing not a structure or union
erro:request for member 'masksToBounds' in somenthing not a structure or union
引用论坛上的讨论
http://www.cocoachina.com/bbs/simple/?t21300.html
iphone短信发送(非系统界面)
http://download.csdn.net/download/weichuan110520/3394014