-(instancetype)initWithFrame:(CGRect)frame{
self= [superinitWithFrame:frame];
if(self) {
self.backgroundColor= kUIColorFromRGB(0x4b4773);
//v.layer.masksToBounds=YES;这行去掉
self.layer.cornerRadius=10;
self.layer.shadowColor= kUIColorFromRGB1(0x000000,1).CGColor;
self.layer.shadowOffset= CGSizeMake(2,5);
self.layer.shadowOpacity=0.5;self.layer.shadowRadius=5;
}
returnself;
}
网友评论