简体   繁体   English

如何为iPhone 5s和6s plus设计?

[英]How to design for iPhone 5s and 6s plus?

I've an app and it looks different in iphone 5s and 6s plus... Please tell me how to design same for both. 我有一个应用程序,它在iPhone 5s和6s plus中看起来有所不同...请告诉我如何为两者设计相同的应用程序。 I've attached the screens 我已经附上了屏幕 这是在iPhone 6s上,右侧和底部之间留有很多空隙

这是iPhone 5s,非常适合。

first is on iphone 6s and a lot of gap is being left at right side and on bottom second is iphone 5s and its good fit perfectly. 首先是在iPhone 6s上,右侧留有很多缝隙,第二个是iphone 5s,它非常适合。 How to achieve same on iPhone 6s plus with same storyboard view controller... 如何在iPhone 6s以及相同的情节提要视图控制器上实现相同...

1.) Use size classes and AutoLayout 1.)使用尺寸类别和自动版式

2.) If you are making app only for iPhone than use Regular Height and compact Width it will help. 2.)如果您仅针对iPhone制作应用程序,而不是使用“常规高度”和“紧凑宽度”,它将有所帮助。

For more detail about size classes see these links 有关尺寸等级的更多信息,请参见以下链接

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/LayoutandAppearance.html https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/LayoutandAppearance.html

https://developer.apple.com/library/ios/recipes/xcode_help-IB_adaptive_sizes/chapters/SelectingASizeClass.html https://developer.apple.com/library/ios/recipes/xcode_help-IB_adaptive_sizes/chapters/SelectingASizeClass.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM