public
Last active

Loading a custom UIView class with a custom nib file.

  • Download Gist
Load UIView with nib
1 2 3 4 5 6 7 8
QPickOneView* myView = nil;
NSArray* nibViews = [[NSBundle mainBundle] loadNibNamed:@"QPickOneView" owner:self options:nil];
for (id currentObject in nibViews) {
if ([currentObject isKindOfClass:[QPickOneView class]]) {
myView = (QPickOneView *) currentObject;
break;
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.