Hallo,
mein Beitrag zur Community:
Probiers mal so:
CustomObject *pView = nil;
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomObject" owner:self options:nil];
for (UIView *subview in nib)
{
if ([subview isKindOfClass:NSClassFromString(@"CustomObject")]) {
pView = (CustomObject*) subview;
break;
}
}
Viele Grüße
Objective-C-Learner
|