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
- HIG
- uitableview
- Xcode
- combine
- swift documentation
- 리팩토링
- uiscrollview
- map
- 클린 코드
- 애니메이션
- RxCocoa
- UITextView
- Clean Code
- SWIFT
- ribs
- 리펙토링
- Human interface guide
- UICollectionView
- 리펙터링
- tableView
- MVVM
- rxswift
- Observable
- collectionview
- Refactoring
- clean architecture
- swiftUI
- 스위프트
- ios
- Protocol
Archives
- Today
- Total
목록instance method (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift 공식 문서] 11. Methods (메서드)
Method 메서드의 정의: 특정 유형과 관련된 함수 인스턴스 작업을 위한 특정 작업 Instance Method 특정 클래스, 구조, 열거 형의 인스턴스에 속하는 함수 class Counter { var count = 0 func increment() { count += 1 } func increment(by amount: Int) { count += amount } func reset() { count = 0 } } let counter = Counter() // 1 counter.increment() // 1 counter.increment(by: 5) // 6 counter.reset() // 0 Self Property 클래스 내에서 self의 의미: 자체 인스턴스 메서드 내에서 현재 인스턴스를..
swift 공식 문서
2021. 6. 29. 00:32