k06a / ABStaticTableViewController

Dynamically hide rows and sections in static UITableView inside UITableViewController.
MIT License
12 stars 4 forks source link

iOS8 problems #1

Open pawelkata opened 10 years ago

pawelkata commented 10 years ago

Hi,

This is a great lif for managing big static tableviews, but it really breaks under iOS8.

As I have apps that use this TV, I'd really love to know if there are any updates planned.

The problem I noticed is in ABStaticTableViewController.m, in method:

Any thoughts?

k06a commented 10 years ago

I'll look inside this problem soon. Look at another way to achieve this with https://github.com/k06a/ABIntentions

k06a commented 10 years ago

@pawelkata looks like sample project works fine. What concrete problem did you met?

pawelkata commented 10 years ago

According to Crashlytics my app breaks on that line on iOS8. iOS7 devices are not affected.

k06a commented 10 years ago

Tell me error message. Is it unrecognized selector sent to instance?

pawelkata commented 10 years ago

Of course it isn't. The error says:

Fatal Exception: NSRangeException *\ -[__NSArrayI objectAtIndex:]: index 6 beyond bounds [0 .. 4]

Please mind, this does not occur on iOS7.x and works properly.

k06a commented 10 years ago

Can you provide more info about your static table? How many sections and rows in each section it has and which rows can be hidden?

pawelkata commented 10 years ago

Unfortunately I can't anymore, at least accurately :-( Sad to say, I had to yank out ABStaticTableViewController from my critical iOS8 update. Anyways, as far as I remember there were 5 sections, with varying amount of rows (6 being the greatest number), which I hidden/displayed depending on inapp purchases.