简体   繁体   English

不使用自动布局的iPhone布局

[英]iPhone layouts without using auto Layout

i am new to iOS Development and working on an application. 我是iOS开发的新手,正在开发应用程序。 i want to handle layout for iPhone5 and iPhone6 without using auto layout. 我想在不使用自动布局的情况下处理iPhone5和iPhone6的布局。

The layout i designed 我设计的布局

在此处输入图片说明

The layout look like on iPhone6 simulator 布局看起来像iPhone6模拟器上的

在此处输入图片说明

Thanks in advance. 提前致谢。

You could use multiple XIBs/Storyboards for the layouts on different devices and check if the device is an iPhone 5 or iPhone 6 when you load the XIB/Storyboard. 您可以将多个XIB / Storyboard用于不同设备上的布局,并在加载XIB / Storyboard时检查该设备是iPhone 5还是iPhone 6。

This would be really cumbersome task, laying out same UI for two different devices, you may want to consider using Auto Layout at some point of time 这将是非常繁琐的任务,为两个不同的设备布置相同的UI,您可能需要考虑在某个时间点使用自动版式

将所有组件的出口添加到相关类,并在那里进行所有计算。

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

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