I have a nib-based table cell that I created in the interface builder. I set the table view cell class to FooTableViewCell , which extends from UITableViewCell .
In FooTableViewCell I override the init method as follows:
-(id)init{ if ((self = [super init])){ // My init code here } return self; }
Now I was expecting my call to be called when it is created. However, the table view is displayed, but the method is never called.
I could get around this, but I would like to fully understand it, and it is not clear to me how an object can live without calling the init method.
Besi
source share