Initial steps to be followed for making an Universal iOS application -
I'm just about to start a universal iOS application. I just want to make this application to use the interface builder.
How can I arrange two nib files in one swung? Whenever I create a class, only a xib file is created, but I want to be a universal application for two xib files, one for iPhone and the other iPad application.
In addition to this, you can also suggest which approach is better, i.e. creating a UI for this universal application through interface or coding.
Just add another xib file to the project. You can start by making a copy of the first version that you create, or with empty xib.
To ensure the correct xib is loaded on the runtime, you have a few options I like to overload the Oiban name on UIViewController, but you can only call init with: NIBN:, right Nib's name is passing.
If you have an overwritten note, then something like this can be done:
- (NSString *) Setting {return UI_USER_INTERFACE_IDIOM () == UIUserInterfaceIdiomPhone? @ "MyFonNeb": @ "MyPaidNib"; }
Comments
Post a Comment