入手時にiPhone 4 and 5
画面サイズを確認し、iPhone1台につき2枚の絵コンテを作成しました。
//iPhone 4
if (height == 480)
{
storyboard = [UIStoryboard storyboardWithName:@"StoryboardiPhone" bundle:nil];
NSLog(@"Device has a 3.5inch Display.");
}
//iPhone 5
else if (height == 568)
{
storyboard = [UIStoryboard storyboardWithName:@"StoryboardiPhone5" bundle:nil];
NSLog(@"Device has a 4inch Display.");
}
//iPads
else
{
storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
NSLog(@"Device has a iPad Display ");
}
iPhone はあと 2 台ありますが、問題は、すべての iPhone と iPadを5台にするのが正しいのかということです。 storyboards
私には間違ったことのように思えますが、1 つのデバイスでビューを配置し、それを他のすべてのデバイスに適合させる方法を見つけることができませんでした。
今の正しいアプローチは何ですか?