How would you call a nib file from within a framework, say:
myFramework/Resources/a.nib
I have the framework built (with iOS-Universal-Framework MK from kstenerud) and installed in the test app, but can't seem to find a way to reference the nib file directly.
[[NSBundle mainBundle] pathForResource:@"BarViewController_iPhone" ofType:@"nib"]
returns nil.
barViewController = [[BarViewController alloc] initWithNibName:@"BarViewController_iPhone" bundle:nil]; also does not work.
where the nib file name is BarViewController_iPhone.nib
. It returns nil
.
I also tried to reference my framework with [NSBundle bundleIdentifier]
, but my framework has a null id. How do I set the id when I build the framework?
Any suggestions would be greatly appreciated!