Contents

Develop
2016.06.27 22:29

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

조회 수 5288 댓글 0
Atachment
첨부 '2'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

초간단 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
번호 분류 제목 글쓴이 날짜 조회 수
807 Develop [php] 쉘에서 실행할 때 인수(파라미터) 받기.. hooni 2003.04.23 15126
806 Develop [js] 자바스크립트로 응용프로그램 실행 ㅎㅎ hooni 2003.04.23 11677
805 Develop [php] URL/URI 관련 환경변수 hooni 2003.04.23 10424
804 Develop [js] 쿠키(cookie)에 대한 설명과 예제.. hooni 2003.04.23 9839
803 Develop [js] 스크롤을 포함한 마우스 위치 찾는 코드 hooni 2003.04.23 9725
802 Develop [c] pcap을 이용한 패킷 분석 ㅎㅎ hooni 2003.04.23 11571
801 Develop [linux] 쉘 스크립트를 이용한 BBS hooni 2003.04.23 11424
800 Develop [unix] 쉘 스크립트 예제 모음 hooni 2003.04.23 17977
799 Develop [c] 간단한 자료구조(stack, queue, linked list) 구현 소스 6 file hooni 2003.04.23 11497
798 Develop [c] 파일입출력, 링크리스트(linked list)를 이용한 주소록(도스용) 소스코드 1 file hooni 2003.04.23 13404
797 Develop [c] 테트리스(Tetris) 게임(도스용) 소스코드 file hooni 2003.04.23 12781
796 Develop [c] flooding 알고리즘 미로 찾기(도스용) 소스코드 9 file hooni 2003.04.23 14522
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 71 Next
/ 71