为控件添加边框 [objc] view plain copy view.layer.borderWidth = 1; view.layer.borderColor = [[UIColor blackColor] CGColor]; 设置button为不能点击且变灰 [objc] view plain copy button.userInteractionEnabled=NO; button.alpha=0.4;