将iPad xib转换为iPhone xib [英] Convert iPad xib to iPhone xib

查看:132
本文介绍了将iPad xib转换为iPhone xib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看过很多关于将iPhone xib转换为iPad xib的帖子和教程,但我想反过来这样做。

I have seen many posts and tutorials about converting iPhone xibs to iPad xibs, but I want to do it the other way around.

我唯一的资源能找到这个:
将iPad应用程序转换为iPhone?

The only resource I've been able to find is this : Convert iPad application to iPhone?

它只包括编译和代码偏差。我知道~ipad / ~iphone xib后缀技巧,但是想要开始生成iPhone xib,所以我不必从头开始创建它,但可以从自动修改版本开始原来的xib和从那里开始工作。

And it only covers compilation and code deviation. I know about the ~ipad / ~iphone xib postfix trick, but would like to get a head start on generating the iPhone xib, so that I don't have to create it from scratch, but can start with an automatically modified version of the original xib and work from there.

我见过相反的工具(来自iPhone xib的iPad xib),但这不是我正在寻找的对于。
有没有人知道这样的工具,或者手动的方式来开始这个?

I have seen tools that do this the other way around (iPad xib from iPhone xib), but that is not what I'm looking for. Does anyone know of such a tool, or of a manual way to get this head start?

(主要问题是调整元素以适应他们的亲戚低分辨率的位置)

(Main issue would be resizing elements to fit in their relative position in the lower resolution)

谢谢!

推荐答案

你可以使用约束来使xib文件与iPhone和iPad兼容。

you can use constraints to make the xib file compatible with iPhone an iPad.

这篇关于将iPad xib转换为iPhone xib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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