Converting an iPhone app to a Universal app?

后端 未结 3 972
孤街浪徒
孤街浪徒 2021-01-14 09:56

I have an iPhone app with FirstViewController and SecondViewController with respective views FirstV

3条回答
  •  Happy的楠姐
    2021-01-14 10:05

    There Are following Rules To Convert The Iphone App to Univarsal App

    1) In Plist File Add NSMainNibFile~ipad .... MainWindow_ipad(ipad window).

    2) Implement separate Names Xibs (Iphone & ipad)

    3)in Target Targeted Device Family set to (iphone/ipad) and set The Frames According To Ipad &iphone For example

    if(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad) {

    btnHme.frame=CGRectMake(971,6, 32, 32); //ipad

    } else {

    btnHme.frame=CGRectMake(438,6, 32, 32); //iphone

    }

    cheers

提交回复
热议问题