개발/아이오에스

objective-c ] UIButton border width, color 설정, 테두리 설정하기

dev.jake 2021. 10. 19. 17:30

- (void)viewWillLayoutSubviews{

    [super viewWillLayoutSubviews];

    self.btn_reset.layer.borderWidth = 1;

    self.btn_reset.layer.borderColor = [UIColor whiteColor].CGColor;

    self.btn_reset.layer.cornerRadius = 15.0;

   

}