daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Apr 21st, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top