Button border color - Objective C - Swift

前端 未结 3 489
别跟我提以往
别跟我提以往 2021-01-20 09:08

I want to change my border color to a specific hex color(#21CE99), can you guys please help me?

I\'ve already known how to change it to a basic color, for example:

3条回答
  •  孤城傲影
    2021-01-20 09:42

    _button.layer.borderColor = [UIColor colorWithRed:33.0 / 255.0 green:206.0 / 255.0 blue:153.0 / 255.0 alpha:1.0].CGColor;
    

提交回复
热议问题