I had the same error.
I used the following lines
UINib *myCustomCellNib = [UINib nibWithNibName:@"CustomNib" bundle:nil]; [tableView registerNib:myCustomCellNib forCellReuseIdentifier:@"CustomNib"];
to register nib in the viewDidLoad method, since I had a different icon that was also associated with the same class. Hence the line
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"GBFBLoadingCell"];
returned zero if I did not register nib in viewDidLoad.
My problem was that I forgot to set the identifier in the attribute inspector for my file "CustomNib.xib" and "CustomNib ~ iphone.xib". (Or, more precisely, I forgot to press enter after entering the identifier in the attribute inspector in Xcode, so that the new name could not be saved.)
Hope this helps.
user1612868 Jun 17 '13 at 10:23 2013-06-17 10:23
source share