How do I create device specific xibs? I have created an iPhone that is universal, but how can I use different xib files? : To associate a resource file with a special tool, you add a custom modifier string to your file name. The inclusion of this modifier string gives the filename with the following format: basename - device.filename_extension The string represents the original name of the resource file. It represents your name while using the file in your name. Similarly, the standard file name extension used to identify the string file type is. The string is a case-sensitive string that can be one of the following values: So if you want separate .xib files, you will include the iPad xib named "MyView-ipad.xib" and the iPhone xib is called "MyView-iphone.xib "Is called. Once you include these files in your project, when you call it:
UIViewController * someViewController = [[SomeViewController alloc] initWithNibName: @ "MyView" bundle: zero]; P> HTML>
Comments
Post a Comment