开发者

What to use instead of initWithStyle: reuseIdentifier:

开发者 https://www.devze.com 2023-01-05 02:06 出处:网络
I have watched the Lynda iPhone tutorials and on the lesson about Tableviews there is a method to create a cell as follows.

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

精彩评论

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