I made an iOS 8 app that uses a grouped UITableView for one of its pages. It has several sections that use CGFloat.leastNormalMagnitude (or CGFloat.min in Swift 2 and below) for section height and footer height to remove the "default space". Everything went well until the application started in iOS 9 and 10, where it crashes with this error:
The application terminated due to the uncaught exception "NSInternalInconsistencyException", reason: "the height of the section header should not be negative - if the height for section 0 is -0.00000"
Be that as it may, any value in 1 (except rounded 0 ) is considered negative - and using 1 as the return value, the header / footer space will reappear.
Is there a way around the solution?
Thanks in advance.
source share