swift UITableViewCell 예제코드


swift UITableViewCell 예제코드

많이 사용하는 테이블 뷰라고 한다. import UIKit class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var TableView: UITableView! func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 10 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "Type1", for: indexPath) as! Type1 cell.TextLabel.text = "\(indexPath.row)" return cell...


#swift #uitablueviewcell #예제 #코드

원문링크 : swift UITableViewCell 예제코드