I have an app that runs perfectly on iOS 9 (simulator) with Swift 2.0 and have an older version of the app with the old version of Swift that runs perfectly on iOS 8.3 (device). For some odd reason, running the Swift 2.0 version on iOS 8.3 causes some weird bugs which really shouldn't be there. Most notably, the UITableView backgroundColor
shows up as black instead of white even though it is specifically set as white in Storyboard.
Additionally the following code does nothing to modify the height of a table view cell pre iOS 9 even though it's nothing new:
override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
if (indexPath.row == 0) {
//calculating the height of the cell
return self.description.frame.height+28+40
}
return super.tableView(tableView, heightForRowAtIndexPath: indexPath)
}
Any insight would be greatly appreciated.