UIBarButtonItem with rounded corners and shadow

后端 未结 5 1497
灰色年华
灰色年华 2021-01-04 23:44

I want to have rounded corners and shadow on a UIBarButtonItem.

UIButton *useButton = [UIButton buttonWithType:UIButtonTypeCustom];
5条回答
  •  情话喂你
    2021-01-05 00:16

    buttonName.layer.cornerRadius = 2;
    buttonName.layer.borderWidth = 1;
    buttonName.layer.borderColor = [UIColor blacColor].CGColor;
    

提交回复
热议问题