Develop
2016.06.27 22:29
[ios][swift] 초간단 TableView 샘플
조회 수 838 댓글 0
첨부 '2' |
---|
초간단 TableView 샘플 코드
https://github.com/picomax/TableViewSwift
아래 배열을 출력하는 테이블 뷰 var items: [String] = ["Egg Benedict", "Mushroom Risotto", "Full Breakfast", "Hamburger", "Ham and Egg Sandwich", "Creme Brelee", "White Chocolate Donut", "Starbucks Coffee", "Vegetable Curry", "Instant Noodle with Egg", "Noodle with BBQ Pork", "Japanese Noodle with Pork", "Green Tea", "Thai Shrimp Cake", "Angry Birds Cake", "Ham and Cheese Panini"]
TestTableView1
ViewController 내부에 Delegate, DataSource 관련 코드 작성한 방식
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource
TestTableView2
ViewController 외부 Delegate, DataSource 관련 코드 작성한 방식
extension ViewController: UITableViewDataSource extension ViewController: UITableViewDelegate
![tableview.png](https://www.hooni.net/xe/files/attach/images/207/332/073/5f9ac035fcd9c848e7dcaf7c6653a1c7.png)
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
37 | Develop |
[web] 더 빠른 웹을 위한 프로토콜, 'HTTP/2'
![]() |
hooni | 2014.10.20 | 1741 |
36 | Develop |
[web] 웹 연동 프로그램 모음..
![]() |
hooni | 2013.04.23 | 6978 |
35 | Develop |
[winmobile] 윈도우 모바일 간단한 테스트 코드 ㅋㅋ
![]() |
hooni | 2013.04.23 | 17109 |
34 | Develop |
[Xcode] 디버깅 옵션
![]() |
hooni | 2013.04.23 | 57246 |
33 | Develop |
[자료구조] 트리(tree) 용어정리
![]() |
hooni | 2003.04.23 | 11094 |
32 | Develop | [펌] 게임 엔진 만든거 공개합니다. | hooni | 2015.02.21 | 2451 |
31 | Develop |
객체지향 프로그래밍에 대한 개념.. (객체)
![]() |
hooni | 2013.04.23 | 7335 |
30 | Develop |
논문 실험용 고려대 툴바 ㅎㅎ
![]() |
hooni | 2013.04.23 | 8686 |
29 | Develop |
논문에 들어갈 툴바 테스트 해볼 것..
![]() |
hooni | 2013.04.23 | 8013 |
28 | Develop | 다양한 방법으로 아주 큰 수(Big Number) 계산.. ㅋㅋ | hooni | 2013.04.23 | 8392 |
27 | Develop | 다운 받아서 테스트 해볼것.. | hooni | 2013.04.23 | 9160 |
26 | Develop |
도메인 관련 솔루션 분석할 거.. ㅋㄷ
![]() |
hooni | 2013.04.23 | 7039 |