uiview *view = [[uiview alloc] init];
view.layer.borderWidth = 1;
view.layer.borderColor = [UIColor colorWithRed:182.0/255 green:182.0/255 blue:182.0/255 alpha:1.0].CGColor;
给view button 设置边框,布布扣,bubuko.com
原文:http://blog.csdn.net/alincexiaohao/article/details/22165719