Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var tableView: UITableView!
  2. tableView = UITableView()
  3. tableView.dataSource = self
  4. tableView.delegate = self
  5. tableView.rowHeight = UITableViewAutomaticDimension
  6. func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  7. return postTexts.count
  8. }
  9. func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
  10. return 250;
  11. }
  12.  
  13. func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
  14. return 5
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement