Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dequeueReusableHeaderFooterViewWithIdentifier not calling init method in ios9

I am using a custom header cell, and while it works correctly in ios8, when I try it on an ios9 device the table calls dequeueReusableHeaderFooterViewWithIdentifier but it doesn't call the initWithFrame (or any init function that I tried) function, and so I just get a blank space for a header file.

Is there a change in how dequeueReusableHeaderFooterViewWithIdentifier works in ios9 that I should be awear of?

Thanks

like image 254
Yannis P. Avatar asked Jul 10 '26 21:07

Yannis P.


1 Answers

I had the same problem with a subclass of UITableViewHeaderFooterView. Changing from initWithFrame to initWithReuseIdentifier solved the problem for me.

like image 50
Oloeth Avatar answered Jul 13 '26 12:07

Oloeth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!