Loading a Reusable UITableViewCell from a Nib
Just implement a method with the appropriate method signature:
- (NSString *) reuseIdentifier {
return @"myIdentifier";
}
Actually, since you are building the cell in Interface Builder, just set the reuse identifier there:
Or if you are running Xcode 4, check the Attributes inspector tab:
(Edit: After your XIB is generated by XCode, it contains an empty UIView, but we need a UITableViewCell; so you have to manually remove the UIView and insert a Table View Cell. Of course, IB will not show any UITableViewCell parameters for a UIView.)