728x90
버튼의 테두리 설정
buttonName.layer.borderWidth = 1;
buttonName.layer.borderColor = [UIColor colorWithRed:(0/255.0f) green:(176/255.0f) blue:(190/255.0f) alpha:1].CGColor;
버튼 타이틀 정렬
버튼명.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
버튼 이미지 컬러
버튼의 이미지도 내 맘대로 색상을 지정할 수 있다.
버튼 스타일을 custom으로 지정후 tintColor를 수정해주면 되는데,
만약, 변경이 안된다면
Asset -> 해당 이미지의 attribute inspector -> Render As를 'Template Image'로 변경해주면 됨!
728x90
'iOS > Objective-C' 카테고리의 다른 글
NSMutableArray (0) | 2022.11.02 |
---|---|
NSString (0) | 2022.10.27 |
NotificationCenter(Observer) (0) | 2022.06.10 |
integer 값 참조 오류 (0) | 2022.05.20 |
Extension (0) | 2022.04.25 |
댓글