简体   繁体   English

在iPhone 5中调整表格视图大小

[英]adjust table view size in iphone 5

I have created an universal app and i run it in iphone 5 simulator ie iphone retina 4. All is working fine but a table view size is not appropriate.Actually, i have that table view completely above an image view. 我创建了一个通用应用程序,并在iPhone 5模拟器(即iPhone Retina 4)中运行它。一切正常,但表格视图的大小不合适。实际上,我的表格视图完全在图像视图上方。 When i run in iphone retina 4, the image sets itself according to the retina 4 display but the table view height extends beyond that image view. 当我在iPhone Retina 4中运行时,图像会根据视网膜4的显示进行设置,但表格视图的高度会超出该图像视图。 I have set the table view size as 160 in the inspector window and when i print that in log, it says 248.0000. 我在检查器窗口中将表视图大小设置为160,当我在日志中打印时,它显示为248.0000。 I am unable to figure out where the problem is. 我无法弄清楚问题出在哪里。 Please help me. 请帮我。

Thanks in advance. 提前致谢。

检查自动调整大小

You can resize view by this. 您可以以此调整视图的大小。

And please uncheck 'Use Autolayout' Option. 并且请取消选中“使用自动版式”选项。 bcoz it'll restrict you with specific margins. bcoz它会限制您的特定利润。

Hopefully it works. 希望它能工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM