static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
cell = [[UITableViewCell alloc] initWithStyle: reuseIdentifier:]
}
You should init your cell
And... You have a common way for initiate your variables. This one should be suitable for you. That method calls before all others and you can initiate your variables here:
-(id)initWithStyle:(UITableViewStyle)style
{
if (self = [super initWithStyle:style])
{
someArray = [NSMutableArray array]; //init the array
}
return self;
}