iOS ) DataSource와 Delegate의 차이?
DataSource VS Delegate DataSource는 데이터를 받아 뷰를 그려주는 역할을 한다고 생각하면 됩니다. 너는 뭘 어떻게 보여줄거냐? 그것을 해주는것이 DataSource.TableView를 예로 들자면, DataSource메소드로는, func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: IndexPath) -> UITableViewCell // return a cell ie UITableViewCell func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int // return a number ie an Int func ta..
iOS
2017. 7. 17. 20:41
TAG
- 피아노
- 제이슨 파싱
- WidgetKit
- WWDC
- swift3
- swift array
- np-hard
- FLUTTER
- IOS
- 회고
- ios 13
- github
- Xcode
- 스위프트
- Combine
- fastlane
- np-complete
- SwiftUI
- UIBezierPath
- actor
- 스위프트 문법
- swift tutorial
- Accessibility
- swift delegate
- WKWebView
- Git
- Swift
- swift 공부
- iOS delegate
- swift sort
글 보관함
반응형
- Total
- Today
- Yesterday