ipad:方向问题
向这里的大家问好,我遇到了另一个问题。我有一些屏幕,基本上有几个搜索过滤器,搜索结果相应地显示在表格中。现在我遇到方向问题,因为此搜索屏幕在横向模式下无法覆盖全屏。
我遇到的解决方案:
- 相同视图的两个 xib,但如果这样做我会丢失数据,因为这些数据将是批量的,因此我可以将其存储在本地。
- 编写大量与坐标相关的代码,这又很麻烦,因为会有很多搜索过滤器。
- 自动调整大小掩码->无法按照预期执行此操作。 (我尝试过这个,但能够将屏幕移动到中心,但我想要完整的视图扩展调整大小填充一些东西)
任何人都可以启发我这一点,以便可以以标准方式准备屏幕。 提前谢谢。
请参阅屏幕截图
Regards to everybody here I am with another problem. I have some screens which basically have several search filters and search results are displayed accordingly in a table. Now I have orientation issues cause this search screen does not cover the full screen in landscape mode.
Solutions that I came across:
- Two xibs for same view but I'll loose data if I do so as this data will be in bulk so I can store it locally.
- write lots of coordinate related code which is again cumbersome as there will be lots of search filters.
- Autoresizemask -> not able to implement this upto expectations. (I tried this but was able to move the screen to the center but I wanted the complete view expanded resizefill something)
Can anybody enlighten me on this so that screens can be prepared in standard ways.
Thnx in advance.
Refer the screen shots
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,它终于成功了..我们只需要调整 xibs 的调整大小蒙版或为视图设置自动调整大小蒙版 - 正如 Ole Begemann 提到的
ok it finally worked.. we just have to adjust resizing mask for xibs or set autoresizemasks for the view-- as Ole Begemann mentioned