找到你要的答案

Q:is it possible to design view for iPad without autolayout?

Q:它是可能的设计的iPad没有自动版式视图?

I have developed app without autolayout for iPhone. Now I need that app for iPad also. Is it possible to create it without autolayout?

我已经开发了应用程序没有自动版式的iPhone。现在我需要的应用程序的iPad也。它可以创建它没有自动版式?

answer1: 回答1:

yes, you have to create App directly then select iPad. and using Auto Resize ,you can directly develop app for iPad only.

I have attached few Screen shot, may be helpful to you.

Create new project, using XIB .

yes, you have to create App directly then select iPad. and using Auto Resize ,you can directly develop app for iPad only.

我附上几个屏幕截图,可能对你有帮助。

创建新的项目,使用XIB。

answer2: 回答2:

I don't recommend that (see comment of @Nimit Parekh).

You can use Sized classes to avoid having 2 separate Storyboards - one for iPhone and other for iPad. There is a good tutorial.

Second option is to have 2 storyboards. You only need to link all outlets from the 1st storyboard to the second. You have to check not to miss something, otherwise you can get exceptions in iPad.

The 3rd option is manually (from the code) to manage layout for iPad - but this will create a lot of specific code for iPad only (you have to check what type is your device and split code) - this is not recommended.

Take into account that Autolayout is more easy to apply on iPad (from my point of view) because of equal withd / height ratio for iPad - it is the same up to now. Not like in iPhone.

我不建议(见@ Nimit Parekh评论)。

你可以使用大小类避免具有2个独立的故事-一个用于iPhone和iPad等。有一个很好的教程。

第二选项是有2个故事。你只需要链接的所有网点从第一个故事的第二。你必须检查不要错过的东西,否则你可以在iPad的例外。

第三个选择是手动(从代码)来管理布局iPad -但是这将创造大量的特定代码为iPad只有(你必须检查你的设备和分割代码是什么型)-这是不推荐的。

考虑到自动版式更容易应用在iPad上(在我看来)因为iPad等如何/高度比-是一样的了。不喜欢iPhone。

ios  ipad  xib