iSofTom / STCollapseTableView

A UITableView subclass that automatically collapse and/or expand your sections
MIT License
137 stars 62 forks source link

Bug returning in previous view #8

Open geogerar opened 9 years ago

geogerar commented 9 years ago

Hello, First of all I would like to Thank you for your excellent tool. I found a possible bug.... I go from a VIEW in a next TableView that I use "STCollapseTableView" All works fine but when a go back to my previous view "[self dismissViewControllerAnimated:YES completion:nil];" my app crashes and I get the error : "Thread1: EXC_BAD_ACCESS" in your code line : " if (newDelegate != self.collapseDelegate)"

Can you Please correct that?

Thank you again

George Gerardis

mysticvalley commented 9 years ago

Hi @geogerar, did you find any solution for above possible issue? I am also having the same issue. Please suggest any remedy for this.

Regards, Rajan

geogerar commented 9 years ago

Yes,

You have to correct the delegates to be weak....... there is a pull request with corrected methods..... I am sending you the link....to take a look and correct in your .h file.......

Weak references to delegate and datasource https://github.com/ideaismobile/STCollapseTableView/commit/0a5744a50e40e10f44bec47399f3b0d164aabbbe

On Fri, Feb 20, 2015 at 6:20 AM, Rajan Maharjan notifications@github.com wrote:

Hi @geogerar https://github.com/geogerar, did you find any solution for above possible issue? I am also having the same issue. Please suggest any remedy for this.

Regards, Rajan

— Reply to this email directly or view it on GitHub https://github.com/iSofTom/STCollapseTableView/issues/8#issuecomment-75187471 .

Γιώργος Ν. Γεράρδης