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)];
相關文章
相關標籤/搜索