Created
September 30, 2012 17:57
-
-
Save swarut/3807953 to your computer and use it in GitHub Desktop.
Objective-C : CustomViewFactory #customview #objective-c #ui #view
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
| @implementation CustomViewFactory | |
| +(CustomView*)newCustomView:(NSString*)lang{ | |
| NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"CustomView" owner:self options:nil]; | |
| CustopmView *customView; | |
| for(UIView *view in nibs){ | |
| if([view isKindOfClass:[CustomView class]]){ | |
| customView = (CustomView*)view; | |
| } | |
| } | |
| return customView; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment