核心代码:
在didFinishLaunchingWithOptions中根据不同的设备来初始化不同的主界面
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
{
// iPhone设备
} else
{
// iPad 设备
}
核心代码:
在didFinishLaunchingWithOptions中根据不同的设备来初始化不同的主界面
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
{
// iPhone设备
} else
{
// iPad 设备
}