我已经阅读了关于这个问题的所有问题,所有的网络文章,但仍然无法以正确的方式得到它。我为 iPhone 6+ (2208x1242) 设计了这个应用程序,现在我是我想要剪切的 PSD。我需要调整什么尺寸才能将其裁剪为适合 iPhone 6/5/5S 的尺寸?
只是想不通,所以请帮助我..
提前致谢。
我已经阅读了关于这个问题的所有问题,所有的网络文章,但仍然无法以正确的方式得到它。我为 iPhone 6+ (2208x1242) 设计了这个应用程序,现在我是我想要剪切的 PSD。我需要调整什么尺寸才能将其裁剪为适合 iPhone 6/5/5S 的尺寸?
只是想不通,所以请帮助我..
提前致谢。
这是所有其他 iPhone 设备的分辨率链接:http: //iphoneresolution.com/
您应该只调整背景大小并剪切按钮和所有其他 UI 元素,如果需要调整元素大小,请注意通过保持纵横比来调整它们的大小。
加油,希望对你有帮助
这可能会有所帮助。报告的屏幕尺寸在代码中。实际屏幕尺寸在评论中。
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";
}
}