Convert xcode 4.6 iPhone app in to Universal app

I am trying to upgrade my existing iPhone app project to an Universal app, I have implemented following steps,

Step 1: Project Navigator - target - Summary - devices - Universal (From iPhone to Universal)

Step 2: Created TabBar with NavigationBar Flow in Storyboard,

When i run my project in iPhone it works properly but when i run in iPad it shows only TabBar with NavigationBar.

Now my problem is how to create new .xib files for iPad ? Xocde doesn't created automatically when i selected my device from iPhone to Universal.

or

How to map my iPhone .xib files with iPad.

Do i need to create new Outlet and action for all buttons which are there in my iPhone .xib ?

Thanks in advance.


在这里输入图像描述 Create a new xib for all your view controllers ,name the view controllers with "~ipad " as a suffix(ex. FirstViewController~ipad.xib)

在这里输入图像描述

xcode will automatically use the xib when the application run in ipad. Link your newly created xib with appropriate classes through identity inspector in xib.

Note : After creating a new xib, add all the controls as added in existing view controller and link newly added controls with file owner.

在这里输入图像描述

add all the controls and link with file owner.

链接地址: http://www.djcxy.com/p/95794.html

上一篇: 开发iPhone应用程序需要多少成本?

下一篇: 将xcode 4.6 iPhone应用转换为通用应用