不兼容的指针类型,使用类型为UItableViewCell的表达式初始化"CustomCellView*"

Ste*_*eve 20 iphone uitableview ios4 ios

你能帮我理解和/解决下面的错误.我不明白这CustomCellView是一个子类UItableViewCell.代码被编译但警告仍然存在:

Incompatible pointer type initializing 'CustomCellView *' with an expression of type `UItableViewCell`
Run Code Online (Sandbox Code Playgroud)

我得到了第二行高亮度:

static NSString *CellIdentifier = @"CustomCell";
CustomCellView *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
Run Code Online (Sandbox Code Playgroud)

Pra*_*n-K 41

static NSString *CellIdentifier = @"CustomCell";
CustomCellView *cell =(CustomCellView*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
Run Code Online (Sandbox Code Playgroud)

你需要输入你的单元格