I know how the loadNibNamed class NSBundle ; In some document, I find something like
[[NSBundle mainBundle] loadNibNamed:@"mynib" owner:self options:NULL];
no return value; just called inside the method (e.g. cellForRowAtIndexPath if I want to customize my cell). In other docs I find:
NSArray* vett=[[NSBundle mainBundle] loadNibNamed:@"mynib" owner:self options:NULL];
In this case, for example, in cellForRowAtIndexPath I could
return [vett lastObject];
or something like that. The latter method seems clear to me; I load a thread into a vector and then I use vector elements. The problem is understanding what the first one does:
[[NSBundle mainBundle] loadNibNamed:@"mynib" owner:self options:NULL];
no return value, cell reference ... where are the objects of my nib? How are they processed? I do not understand how this works.
source share