I'm trying to create a view controller and wire it up to a view by using a nib file. I know that to do this you can use:
However, specifying nil for the bundle will cause it to use the default bundle, but the nib I want to load is in a different directory. I don't really know anything about working with bundles, but I do have an NSString object that is the path for the specified nib. Thanks in advance!
Code:
[[MyViewController alloc] initWithNibName:@"NibName" bundle:nil];
However, specifying nil for the bundle will cause it to use the default bundle, but the nib I want to load is in a different directory. I don't really know anything about working with bundles, but I do have an NSString object that is the path for the specified nib. Thanks in advance!