ios UIView 和 UIButton边框和阴影设置

 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)];


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