Created
January 7, 2011 14:53
-
-
Save leviathan/769539 to your computer and use it in GitHub Desktop.
Loading a custom UIView class with a custom nib file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment