如何为横向和纵向创建单独的UI? [英] How to create separate UI for Landscape and Portrait?

查看:227
本文介绍了如何为横向和纵向创建单独的UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有很好的教程来说明如何创建类似iPhone计算器上的UI?在我看来,它在同一初始ViewController中具有两个不同的视图,并且它们根据iPhone的方向而变化.

Is there any good tutorial that shows how to create a UI like the one on iPhone's calculator? It looks to me that it has two different views in the same initial ViewController and they change according to the orientation of the iPhone.

推荐答案

我创建了一个项目,并将其发布在GitHub上,每个人都想创建一个与默认iPhone计算器完全一样响应的UI.该项目的链接为 https://github.com/FotiosTragopoulos/OrientationUI

I created a project and publish it on GitHub for everyone wants to create a UI that responds exactly like the default iPhone calculator. The link for the project is https://github.com/FotiosTragopoulos/OrientationUI

这篇关于如何为横向和纵向创建单独的UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆