iphone to ipad convert
<p>do i need to add all new xib file for ipad?? i mean should i just copy old xib file and make it as Ipad ?? </p>

<p>i have a issue , lets say i  made a UILabel according to iphone now when i convert it to Ipad , its just finish at 320 , how to make fit according to ipad , </p>

<p><strong>UPDATES</strong></p>

<p>ok i am doing like this</p>

<pre><code>    #ifndef __IPHONE_3_2 // if iPhoneOS is 3.2 or greater then __IPHONE_3_2 will be defined
    typedef enum { // provided by noblemaster ]:-|
        UIUserInterfaceIdiomPhone, // iPhone and iPod touch style UI
        UIUserInterfaceIdiomPad, // iPad style UI
    } UIUserInterfaceIdiom;
    #define UI_USER_INTERFACE_IDIOM() (([[UIDevice currentDevice].model rangeOfString:@"iPad"].location != NSNotFound) ? UIUserInterfaceIdiomPad : UIUserInterfaceIdiomPhone)
    #endif // ifndef __IPHONE_3_2 











                if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

                    NSLog(@" IPAD");
Flag=1

                else


                    NSLog(@" IPhone");
Flag=0
</code></pre>

<p><strong>now in all View Controller i am changing  UI like this</strong></p>

<p>if(Flag==0)
{
UI=1240 by 760 // UI is defined programmatically </p>

<p>}
else
if(flag==1)
{
} UI=320 by 480</p>

<p><strong>is this good approach kindly suggest</strong> </p>
