Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我继承了一个应用程序,其中有一些全局变量,其中一个是 ViewsSize,它是 666(一个邪恶的程序员写了这个)。现在我假设一旦部署在 iPad mini 上这将不起作用?有人对以相对模式调整视图大小有更好的想法吗?
谢谢。
iPad Mini 具有与 iPad 2 完全相同的分辨率,甚至在视图方面也被视为相同。因此,虽然这是一种不好的做法,但它根本不会在 iPad Mini 上中断。所以你可以为这个继承的应用程序高枕无忧,只是不要复制它!
查看文档以了解UIView.autoresizingMask相对大小以供将来参考。
UIView.autoresizingMask