Skip to content

Instantly share code, notes, and snippets.

@wavecos
Last active April 17, 2016 04:55
Show Gist options
  • Save wavecos/56bed27bee9c01e53d548e3c03fb938c to your computer and use it in GitHub Desktop.
Save wavecos/56bed27bee9c01e53d548e3c03fb938c to your computer and use it in GitHub Desktop.

Dynamic UITableViewCell height

  1. Use auto layout
  2. Set this:
    self.tableView.rowHeight = UITableViewAutomaticDimension
    self.tableView.estimatedRowHeight = 120 // Any referencial height
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment