I'm starting a project that must be for iPhone and iPad...you can tell me that it's easy and that I can create an "Universal" project..it's right. But I have a "stupid" question about a "stupid" problem. In an universal project I have two .xib (iPhone and iPad) for a class and inside code I verify if I'm using the one or the other
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
// The device is an iPad running iPhone 3.2 or later.
}
else
{
// The device is an iPhone or iPod touch.
}
ok?
But you know that in a single view of iPad I can show many views that an iPhone can show one at time. At example I have two view with their classes:
FirstView.h-FirstView.m-FirstView_iPad.xib-FirstView_iPhone.xib
and
SecondView.h-SecondView.m-SecondView_iPad.xib-SecondView_iPhone.xib
For iPhone it's not a problem but for iPad? In a view in iPad I can put first and second viewcontroller, it's not easy to organize if I have two different classes for two viewcontrollers... Do you have a solution for this? Or the best solution is crate two separate project iPhone and iPad? thanks