Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- uitableview
- clean architecture
- 클린 코드
- 애니메이션
- Protocol
- 리펙토링
- tableView
- swift documentation
- MVVM
- uiscrollview
- ios
- swiftUI
- Xcode
- RxCocoa
- Human interface guide
- UITextView
- ribs
- HIG
- Refactoring
- 리팩토링
- combine
- rxswift
- 스위프트
- Clean Code
- UICollectionView
- 리펙터링
- collectionview
- SWIFT
- map
- Observable
Archives
- Today
- Total
목록ToggleButton (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] UIButton 하나로 토글 버튼 구현 방법 (+ RxSwift, RxCocoa, isHighlighted, withLatestFrom)
UIButton 하나로 토글 버튼 구현 방법 UIButton에는 normal, selected, highlighted가 존재 normal과 selected 상태를 이용하여 토글 버튼으로 활용 highlighted애니메이션은 setImage(_:for:) 에서 for부분에 적용 normal -> highlighted 애니메이션은 for: .highlighted로 설정 selecte -> highlighted 애니메이션은 배열로 선언 [.selected, .highlighted] button.setImage(UIImage(named: "play"), for: .normal) button.setImage(UIImage(named: "play-pressed"), for: .highlighted) button.s..
iOS 기본 (swift)
2022. 4. 26. 23:43