Last active
July 19, 2017 19:06
-
-
Save jeantimex/3f5eaa90b87dddf894ada923a6e844cc to your computer and use it in GitHub Desktop.
heightForRowAtIndexPath
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat { | |
return sections[(indexPath as NSIndexPath).section].collapsed ? 0 : UITableViewAutomaticDimension | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment