Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. var yourArray = [String]()
  2.  
  3. func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  4. return yourArray.count
  5. }
  6.  
  7. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  8.  
  9. let cellll = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
  10. cell.textLabel?.text = yourArray[indexPath.row]
  11. return cell
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement