简体   繁体   English

从通用应用程序和转换iOS中的故事板的最佳方法是什么

[英]What is the best way from universal app and converting storyboard in ios

I'm working on an iOS app, that should work fine with both iphones and ipads. 我正在开发一个iOS应用程序,该应用程序可以在iPhone和iPad上正常使用。 As I know we can build the app as universal or convert iphone storyboard into ipad storyboard.What I want to know is, what is the best way from these and, when we launch app to app store, is it a problem to have two storyboards one for iphone and another for ipad. 据我所知,我们可以将应用程序构建为通用应用程序,也可以将iPhone故事板转换为ipad故事板。我想知道的是,从中获得最好的方法是什么,当我们启动应用程序到应用程序商店时,拥有两个故事板是一个问题一个用于iphone,另一个用于ipad。

Two storyboards for each type of device is a best way. 对于每种类型的设备,两个情节提要是最好的方法。 As a result you will have more usable and careful UX for both types. 结果,对于这两种类型,您将拥有更多可用和更仔细的用户体验。 But this way require a little bit more time for developing. 但是这种方式需要更多的时间来开发。

What I want to know is, what is the best way 我想知道的是,最好的方法是什么

That depends on your needs. 这取决于您的需求。 Do you want the interface to be the same on iPhone and iPad, except sized differently? 除了大小不同外,您是否希望界面在iPhone和iPad上相同? Then you may be able to use a single storyboard and rely on autolayout to adapt to different devices. 然后,您也许可以使用单个情节提要板,并依靠自动布局来适应不同的设备。 If you want different interfaces on iPhone and iPad, perhaps to take better advantage of a much larger screen, then use different storyboards for each device type. 如果要在iPhone和iPad上使用不同的界面,也许要更好地利用更大的屏幕,请为每种设备类型使用不同的故事板。 You should still use autolayout in each storyboard, though, because within each device type there are several different screen sizes. 不过,您仍然应该在每个情节提要板中使用自动布局,因为在每种设备类型内都有几种不同的屏幕尺寸。

is it a problem to have two storyboards one for iphone and another for iPad 有两个故事板,一个用于iPhone,另一个用于iPad,是否是一个问题?

No. 没有。

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

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