Created
December 2, 2013 16:32
-
-
Save ariok/7752231 to your computer and use it in GitHub Desktop.
Loading the main view from a xib file
This file contains hidden or 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
- (UIView *)loadWithNib { | |
NSArray *aNib = [[NSBundle mainBundle]loadNibNamed:NSStringFromClass([self class]) owner:self options:nil]; | |
UIView *view = [aNib objectAtIndex:0]; | |
return view; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment