不兼容的指针types使用UItableViewCelltypes的expression式初始化“CustomCellView *”

你能帮我理解和解决下面的错误吗? 我不明白,因为CustomCellViewCustomCellView的子类。 代码被编译,但警告仍然存在:

 Incompatible pointer type initializing 'CustomCellView *' with an expression of type `UItableViewCell` 

我得到了第二行hightlighted:

 static NSString *CellIdentifier = @"CustomCell"; CustomCellView *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 

 static NSString *CellIdentifier = @"CustomCell"; CustomCellView *cell =(CustomCellView*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 

你需要input到你的单元格

 static NSString *CellIdentifier = @"CustomCell"; CustomCellView *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; 

对于自定义单元格下面的代码也正常工作与给定的框架..

  CustomCell *cell= [[[CustomCell alloc] initWithFrame:CGRectZero reuseIdentifier:nil] autorelease];