//设置圆角
self.layer.cornerRadius =5;
self.layer.borderColor =[[UIColor lightGrayColor]CGColor];
self.layer.borderWidth =2;
//设置阴影
self.layer.shadowColor =[[UIColor grayColor]CGColor];
self.layer.shadowOffset =CGSizeMake(50, 50);