Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tableView: UITableView!
- tableView = UITableView()
- tableView.dataSource = self
- tableView.delegate = self
- tableView.rowHeight = UITableViewAutomaticDimension
- func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return postTexts.count
- }
- func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
- return 250;
- }
- func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
- return 5
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement