I have following code with following xib:
@property (nonatomic, retain) IBOutlet UITableViewCell *cellLoadMore;

When I try to NSLog the cellLoadMore, it returns null, however, when I try to NSLog the view, it has value. What could be the problem of cellLoadMore returns null?
Below is my code:
- (void)viewDidLoad{
[super viewDidLoad];
NSLog(@"cell load more %@", cellLoadMore_);
NSLog(@"view %@", self.view);
}
Console prints:
cell load more (null)
view <UITableView: 0x1284200; frame = (0 20; 320 460); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0xa393b0>; contentOffset: {0, 0}>
Note: My class is a subclass from UITableView.
I faced this problem some times and managed to solve it by change my controller from subclass of UITableViewController into UIViewController that using UITableview delegate.
This is quite annoying though.