iOS-TreeTableViewController icon indicating copy to clipboard operation
iOS-TreeTableViewController copied to clipboard

Strange behavior with iOS7

Open mstrater opened this issue 11 years ago • 4 comments

When the example project is run on iOS7 it shows strange behavior as seen in the screenshot below. Certain subtables do not show up. screen shot 2013-10-15 at 5 29 13 pm

mstrater avatar Oct 16 '13 00:10 mstrater

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.

vallard avatar Oct 16 '13 06:10 vallard

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 .

mstrater avatar Oct 16 '13 20:10 mstrater

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 .

mstrater avatar Oct 16 '13 21:10 mstrater

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.....

awedeebawe avatar Oct 14 '14 14:10 awedeebawe