How to only override a method depending on the runtime system iOS version?
I've implemented automatic dynamic tableview cell heights for iOS 8 by using self.tableView.rowHeight = UITableViewAutomaticDimension; For pre-iOS 8, which does not support automatic dynamic cell heights, I overrided the heightForRowAtIndexPath method. This is a similar to what I did: Using Auto Layout in UITableView for dynamic cell layouts & variable row heights The problem is to how to write code that uses automatic cell height for iOS 8 but overrides heightForRowAtIndexPath for earlier iOS versions. I'd like my custom heightForRowAtIndexPath method only if iOS version is less than 8. Any