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 |
Tags
- collectionview
- ios
- swift documentation
- Protocol
- map
- 리펙토링
- uitableview
- MVVM
- UITextView
- Refactoring
- 리팩토링
- swiftUI
- RxCocoa
- 애니메이션
- rxswift
- tableView
- ribs
- UICollectionView
- Xcode
- 리펙터링
- 클린 코드
- Observable
- uiscrollview
- SWIFT
- Human interface guide
- 스위프트
- Clean Code
- combine
- clean architecture
- HIG
Archives
- Today
- Total
목록init(frame:) (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] init(frame:), required init?(coder aDecoder: NSCoder), prepareForInterfaceBuilder(), awakeFromNib() 초기화의 정체
init(frame: CGRect) Interface Builder에서 쓰이지 않고, 코딩으로 UIView를 상속받은 클래스를 만들 때 사용 ex) let sampleButton = UIButton(frame: CGRect(x:3, y:4, width:5, height:6)) required init?(coder aDecoder: NSCoder) Interface Builder에서 생성되는 초기화 구문 View나 Button과 같은 것을 커스텀하는 경우, 위 두 가지의 초기화 구문이 필수 class MyCustomView: UIView { @IBOutlet weak var mainTitle: UILabel! @IBOutlet weak var subTitle: UILabel! override init(fr..
iOS 기본 (swift)
2020. 11. 16. 23:01