Contents

Develop
2016.06.27 22:29

[ios][swift] 초간단 TableView 샘플

Views 734 Comment 0
Atachment
Attachment '2'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

초간단 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
TAG •

?

List of Articles
No. Category Subject Author Date Views
781 Develop [c] 가위 바위 보 서버, 클라이언트 소스코드 file hooni 2003.04.23 8171
780 Develop [c] fork() 시스템 콜 사용 방법. hooni 2003.04.23 27583
779 Develop [c] 소켓 프로그래밍 요약.. hooni 2003.04.23 6964
778 Develop [c] 소켓주소 구조체에 대해.. hooni 2003.04.23 6724
777 Develop [c] 소켓의 세가지 동작모드 hooni 2003.04.23 6904
776 Develop [c] 컴파일러 DFA구현^^ 입력 받아 실행 4 file hooni 2003.04.23 8105
775 Develop [c] OpenGL 시어핀스키 가스킷(p.73 - 첫시간) hooni 2003.04.23 8748
774 Develop [c] 시어핀스키 가스킷..(p.582, A.2 - 두번째) hooni 2003.04.23 7474
773 Develop [c] 약수/최대공약수/완전수 알고리즘 hooni 2003.04.23 8863
772 Develop [c] 프로그래밍의 전반적인 설명 ppt file hooni 2003.04.23 7667
771 Develop [jsp] HelloServlet 출력문 file hooni 2003.04.23 7788
770 Develop [jsp] Get방식, Post방식 전송 예제.. file hooni 2003.04.23 13758
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 71 Next
/ 71