ios UIView 和 UIButton边框和阴影设置

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

 self.passwordLabel.layer.borderWidth=1;
    self.passwordLabel.layer.cornerRadius=6;
    self.passwordLabel.layer.borderColor=[UIColor colorWithRed:188/255.0 green:190/255.0 blue:197/255.0 alpha:1.0].CGColor;
    
    self.loginBtn.layer.borderWidth=1;
    self.loginBtn.layer.cornerRadius=6;
    self.loginBtn.layer.borderColor=[UIColor colorWithRed:188/255.0 green:190/255.0 blue:197/255.0 alpha:1.0].CGColor;
    [self.loginBtn setTitleShadowColor:[UIColor blackColor] forState:UIControlStateNormal];
    [self.loginBtn setTitleShadowOffset:CGSizeMake(1, 1)];


转载于:https://my.oschina.net/u/554046/blog/533554

你可能感兴趣的:(ios UIView 和 UIButton边框和阴影设置)