iOS UIButton 90도 회전시키기
CGAffineTransform 사용.
private let menuButton = UIButton().then {
// 3점 모양(햄버그 버튼)
$0.setImage(UIImage(systemName: "ellipsis"), for: .normal)
$0.contentMode = .scaleAspectFit
$0.tintColor = .black
$0.transform = CGAffineTransform(rotationAngle: .pi * 0.5)
}
'project > Kuring(공지알림)' 카테고리의 다른 글
[iOS] Xcode Storyboard(스토리보드) 없이 코드로 대체하는 방법 (0) | 2022.01.07 |
---|---|
[iOS] RxGesture에 정리 기본 (0) | 2021.12.20 |
iOS StackView Button 추가하기 (0) | 2021.12.19 |
iOS SearchBar + RxSwift (0) | 2021.12.19 |
[iOS] FCM(Firebase Cloud Message) 정리 기본 (0) | 2021.12.17 |