I'm trying to load an UIView from a NIB/XIB file.
The file is called 'Views.xib' and only contains a UIView (I didn't give it class name or something).
In the UIViewController class called 'viewController.m' I use the following code to bind the view of the UIViewController to the UIView within the XIB file.
The application compiles without errors and/or warnings but the screen stays black... what am I doing wrong?
Thanks for your help
The file is called 'Views.xib' and only contains a UIView (I didn't give it class name or something).
In the UIViewController class called 'viewController.m' I use the following code to bind the view of the UIViewController to the UIView within the XIB file.
Code:
NSArray* nibViews = [[NSBundle mainBundle] loadNibNamed:@"Views" owner:self options:nil];
infoView = [nibViews objectAtIndex:0];
[self.view addSubview:infoView];
The application compiles without errors and/or warnings but the screen stays black... what am I doing wrong?
Thanks for your help