この問題に関するすべての質問、すべての Web 記事を読みましたが、まだ正しい方法で解決できません。iPhone 6+ (2208x1242) 用のアプリをデザインしましたが、今はカットしたい PSD です。iPhone 6/5/5S に適したサイズにカットするには、どのサイズにリサイズする必要がありますか?
さっぱり分からないので、どなたか教えてください..
前もって感謝します。
この問題に関するすべての質問、すべての Web 記事を読みましたが、まだ正しい方法で解決できません。iPhone 6+ (2208x1242) 用のアプリをデザインしましたが、今はカットしたい PSD です。iPhone 6/5/5S に適したサイズにカットするには、どのサイズにリサイズする必要がありますか?
さっぱり分からないので、どなたか教えてください..
前もって感謝します。
これは役立つかもしれません。報告された画面サイズはコードにあります。実際の画面サイズはコメントにあります。
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
device = @"iPhone Classic"; // Just in case it doesn't make it through the conditionals
// Classic has a resolution of 480 × 320
if( (screenSize.height == 480 || screenSize.width == 480) && deviceScale == 1.0f ) {
device = @"iPhone Classic";
// Retina has a resolution of 960 × 640
} else if( (screenSize.height == 480 || screenSize.width == 480) && deviceScale == 2.0f ) {
device = @"iPhone Retina35";
// Retina 4" has a resolution of 1136 x 640
} else if (screenSize.height == 568 || screenSize.width == 568 ) {
device = @"iPhone Retina4";
// iPhone 6 has a resolution of 1334 by 750
} else if (screenSize.height == 667 || screenSize.width == 667 ) {
device = @"iPhone 6";
// iPhone 6 Plus has an actual size of 2208 × 1242 and resolution of 1920 by 1080
// Reported size is 736 x 414
} else if (screenSize.height == 736 || screenSize.width == 736 ) {
device = @"iPhone 6 Plus";
}
} else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
device = @"iPad Classic"; // Just in case it doesn't make it through the conditionals
if(deviceScale == 1.0f) {
device = @"iPad Classic";
} else if (deviceScale == 2.0f) {
device = @"iPad Retina";
}
}