我创建了UITableCellView一个名为NoteCell. 标头定义以下内容:
#import <UIKit/UIKit.h>
#import "Note.h"
@interface NoteCell : UITableViewCell {
    Note *note;
    UILabel *noteTextLabel;  
}
@property (nonatomic, retain) UILabel *noteTextLabel;
- (Note *)note;
- (void)setNote:(Note *)newNote; 
@end
在实现中,我对该setNote:方法有以下代码:
- (void)setNote:(Note *)newNote {
    note = newNote;
    NSLog(@"Text Value of Note = %@", newNote.noteText);
    self.noteTextLabel.text = newNote.noteText;
    NSLog(@"Text Value of Note Text Label = %@", self.noteTextLabel.text);
    [self setNeedsDisplay];
}
这无法设置的文本字段UILabel和日志消息的输出是:
2008-11-03 18:09:05.611 VisualNotes[5959:20b] Text Value of Note = Test Note 1  
2008-11-03 18:09:05.619 VisualNotes[5959:20b] Text Value of Note Text Label = (null)
我还尝试设置UILabel使用以下语法的文本字段:
[self.noteTextLabel setText:newNote.noteText];
这似乎没有什么不同。
任何帮助将非常感激。