Beginning iPhone Development, Chap 8, page 207
When building a subclass in interface builder, we just want to load the .xib file later and grab the "CustomCell" cell object out of the array loaded.
If you mess the File's Owner to CustomCell (instead of the default NSObject) and mess with the IBOutlets, it will confuse the loader:
[[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
That Owner: argument is "The object to assign as the nib’s File's Owner object."
The mechanism is not clear now (didn't bother to read the Resource Programming Guide yet).
No comments:
Post a Comment