如何在网格视图中以差异方向(横向和纵向)显示相同的列数. [英] How to display same no of colomns in diff orientation(landscape & portrait) in grid view.

查看:118
本文介绍了如何在网格视图中以差异方向(横向和纵向)显示相同的列数.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iPad应用程序,该应用程序在横向模式和纵向模式下均应显示相同的列数..
请给我一种方法..

i am having an iPad app that should show same no of colomns in landscape mode as well in portrait mode..
plz give a way to me how to do this..

推荐答案

您需要在纵向视图中显示多少列?您是否尝试过在UITableView上设置Autorisizing mask?在您的UIView类中创建一个UITableView,并在其上设置适当的自动调整掩码.希望对您有所帮助.
How many columns you need to show in portrait view? Did you try setting Autorisizing mask on your UITableView? Create a UITableView in your UIView class and set appropriate autorisizing mask on it. I hope that will help.


这篇关于如何在网格视图中以差异方向(横向和纵向)显示相同的列数.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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