Custom cell just failing

Posted by ct2k7 on Stack Overflow See other posts from Stack Overflow or by ct2k7
Published on 2010-04-08T22:09:51Z Indexed on 2010/04/08 22:13 UTC
Read the original article Hit count: 339

Filed under:
|

Hi, I'm trying to use a custom UITableViewCell, and I've placed it in the same nib file as the UITableView controller. For this, the files are: NTItems.h, NTItems.m and NTItems.xib.

I have defined the cell in the header file:

IBOutlet UITableViewCell *cellview;

and I've correctly applied the property: nonatomic, retain so it's there.

In the m file - I've synthesized the variable device and am using this to get the custom cell:

if(cell == nil){
      cell = self.cellview;
}

However, when I load the table, I get this horrible mess:

alt text

There should be more than 1 cell showing data as well. On another note, how do I map the labels to the text which is to be displayed?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c