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;