开发者

What to use instead of initWithStyle: reuseIdentifier:

I have watched the Lynda iPhone tutorials and on the lesson about Tableviews there is a method to create a cell as follows.

//create cell
UITableViewCell *cell = [[UITableView alloc]
                         initWithStyle:UITableViewCellStyleDefault
                         reuseIdentidier:@"cell"];

but Xcode says there is no such method. as well as obviously no code sense picking it up.

What method can be used instead of the above? thanks /

Reg开发者_Go百科ards


Example contains an error:

Use [[UITableViewCell alloc]... instead [[UITableView alloc]...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜