iOS-TreeTableViewController
iOS-TreeTableViewController copied to clipboard
Strange behavior with iOS7
When the example project is run on iOS7 it shows strange behavior as seen in the screenshot below. Certain subtables do not show up.
Yikes! I haven't tested it yet on iOS7, so I'll need to update the code. Thanks for letting me know. Hopefully this week I'll get some time.
It looks like this could be the problem: http://stackoverflow.com/questions/18919459/ios-7-beginupdates-endupdates-inconsistent Apparently iOS 7 made a change where it sometimes returns an NSIndexPath and sometimes an NSMutableIndexPath which causes comparing then to sometimes return not equal when previously they were equal. I think this is causing a problem where the dictionary cellHeights is storing objects with NSIndexPath keys. I'll look into it and let you know if I discover anything else. -Max
On Tue, Oct 15, 2013 at 11:11 PM, Vallard Benincosa < [email protected]> wrote:
Yikes! I haven't tested it yet on iOS7, so I'll need to update the code. Thanks for letting me know. Hopefully this week I'll get some time.
— Reply to this email directly or view it on GitHubhttps://github.com/vallard/iOS-TreeTableViewController/issues/1#issuecomment-26394986 .
I think I found a solution. I submitted a pull request on the Git project. Let me know if it looks okay. Thanks again for letting us use your project :) -Max
On Wed, Oct 16, 2013 at 1:44 PM, Max Strater [email protected] wrote:
It looks like this could be the problem: http://stackoverflow.com/questions/18919459/ios-7-beginupdates-endupdates-inconsistent Apparently iOS 7 made a change where it sometimes returns an NSIndexPath and sometimes an NSMutableIndexPath which causes comparing then to sometimes return not equal when previously they were equal. I think this is causing a problem where the dictionary cellHeights is storing objects with NSIndexPath keys. I'll look into it and let you know if I discover anything else. -Max
On Tue, Oct 15, 2013 at 11:11 PM, Vallard Benincosa < [email protected]> wrote:
Yikes! I haven't tested it yet on iOS7, so I'll need to update the code. Thanks for letting me know. Hopefully this week I'll get some time.
— Reply to this email directly or view it on GitHubhttps://github.com/vallard/iOS-TreeTableViewController/issues/1#issuecomment-26394986 .
Ah, @vallard , I have the same problem and I wrote you about it in Twitter a few days ago :) I still have this gap even with the updates.....