Can you help me understandand/fix the error below. I don\'t understand as CustomCellView
is a subclass of UItableViewCell
. The code gets compiled but t
For custom cell below code is also working fine with given frame..
CustomCell *cell= [[[CustomCell alloc] initWithFrame:CGRectZero reuseIdentifier:nil] autorelease];
static NSString *CellIdentifier = @"CustomCell";
CustomCellView *cell =(CustomCellView*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
you need to type cast to your cell
static NSString *CellIdentifier = @"CustomCell";
CustomCellView *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];