Advertisement
Guest User

Untitled

a guest
May 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. class NewPostVC: UIViewController, UITableViewDataSource {
  2.  
  3. @IBOutlet var tableView: UITableView!
  4.  
  5. //MARK: Incoming Query
  6. func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  7. return rows.count
  8. }
  9.  
  10. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  11. return rows[indexPath.row]
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement