Guest User

Untitled

a guest
Jan 16th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. func numberOfSectionsInTableView(tableView: UITableView) -> Int {
  2. return 1
  3. }
  4.  
  5. func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  6. return items.count
  7. }
  8.  
  9. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  10. let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as UITableViewCell
  11. cell.textLabel?.text = items[indexPath.row]
  12. return cell
  13. }
Add Comment
Please, Sign In to add comment