일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- tableView
- HIG
- map
- Observable
- clean architecture
- 애니메이션
- SWIFT
- MVVM
- UITextView
- swiftUI
- uitableview
- 스위프트
- UICollectionView
- RxCocoa
- uiscrollview
- 리펙토링
- ribs
- ios
- collectionview
- rxswift
- Human interface guide
- Protocol
- 리펙터링
- 클린 코드
- Refactoring
- Xcode
- swift documentation
- 리팩토링
- combine
- Clean Code
- Today
- Total
목록UISegmentedControl (2)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bKDIX2/btrBoDJsADO/0mQpsnsjhUHaWKFNICttk0/img.png)
1. UISegmentedControl - 기본 사용 방법 2. UISegmentedControl - 커스텀 방법, PageViewController와 사용 방법 UISegmentedControl 커스텀 방법 클래스 준비 import UIKit final class UnderlineSegmentedControl: UISegmentedControl { } UISegementedControl은 아래와 같이 배경색과 divider가 존재 회색 배경과 divider를 지우는 코드 추가 override init(frame: CGRect) { super.init(frame: frame) self.removeBackgroundAndDivider() } override init(items: [Any]?) { super..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/XOa6J/btrBnLeAjAh/Bl9FeREOoUC5lQRkmn5Ni0/img.png)
1. UISegmentedControl - 기본 사용 방법 2. UISegmentedControl - 커스텀 방법, PageViewController와 사용 방법 UISegmenetedControl 사용 방법 Swift에는 Radio Button이 따로 없고 UISegmentedControl이 존재 ViewController 준비 import UIKit class ViewController: UIViewController { } segmentedControl 한 개와 두 개의 뷰 준비 segmentedControl에 들어가는 label은 UISegmentedControl의 생성자 파라미터 item에서 주입 let segmentedControl: UISegmentedControl = { let contro..