rishi420 / ExpandableTableView

This subclass of UITableView makes the Headers to expand or collapse.
MIT License
19 stars 5 forks source link

App crash when tap on Header. #3

Closed milanivarni closed 8 years ago

milanivarni commented 8 years ago

HI, I am new in iOS. Recently I used on this library in my project. I have two NSMutableArray: (1) questionArray -> 11 Objects (2) answerArray -> 11 Objects

I wrote following code:

there is some layout issues for cells.

simulator screen shot 13-oct-2016 3 35 02 pm \ (<FAQController: 0x7fd36d44b740>)

when I tap on particular header. App stuck on [self endUpdates] and crashed. I got following error:

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView (<ExpandableTableView: 0x7fd3689a9e00; baseClass = UITableView; frame = (0 0; 320 568); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x7fd36d4d5150>; layer = <CALayer: 0x7fd36a9c0cc0>; contentOffset: {0, 0}; contentSize: {320, 550}>) failed to obtain a cell from its dataSource

So, please help me out from this.

Thanks.

rishi420 commented 8 years ago

I've updated this repository for Xcode 8 today. Is it crashing on latest build? Which version of xcode are you using?

rishi420 commented 8 years ago

@milanivarni Is the issue solved? Latest code is for Xcode 8. If you are using Xcode 7.2 you can download older release from https://github.com/rishi420/ExpandableTableView/releases.

rishi420 commented 8 years ago

Issue did not reproduce in latest code. Issuer is not responding.