You rewrite self (returned from super init ) with the object returned from your array. If you want to load a custom cell from nib, do it in your cellForRowAtIndexPath method or create a convenient class method in your custom cell, which is loaded from nib:
In your cellForRowAtIndexPath:
cell = [CustomCell cell];
In the implementation of your cell:
+(CustomCell*)cell { NSArray *nib =[[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil]; return [nib objectAtIndex:0]; }
EDIT - the method name has changed, since new * indicates that the saved object will be saved.
source share