this might be a dumb question but I found nothing to it... I stumbled over a piece of code that I think can be optimized.
I have a viewcontroller that consists of 24 notes/postits. the following gets called during the view-did-load-process:
for (int i = 1; i <= 24; i++)
{
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"PostitView" owner:self options:nil];
for (UIView *subview in nib)
{
if ([subview isKindOfClass:NSClassFromString(@"PostitView")])
{
it takes quite a while to load the postit again and again from the nib.
I would have said, I simply make a copy from the subview, but it wont work. so whats the right way then?
thanks!!! Tom