简体   繁体   English

在“带标签的应用程序”中使用时,UITableView不滚动

[英]UITableView doesn't scroll when used in “Tabbed Application”

I recently started my first project for iOS 5. I started with an empty preset, the so called "Tabbed Application". 我最近开始了iOS 5的第一个项目。我从一个空的预设开始,即所谓的“标签应用程序”。 I inserted a UITableView in the main view. 我在主视图中插入了UITableView That UITableView doesn't scroll when I open it for the first time, but it does after switching to the second tab. 第一次打开该UITableView不会滚动,但切换到第二个选项卡后它会滚动。

There's also an UIBarButtonItem that doesn't work, but I guess that's the same problem. 还有一个UIBarButtonItem不起作用,但是我想那是同样的问题。 I tried a lot, nothing seems to work. 我尝试了很多,似乎没有任何效果。 At first I thought that I did something wrong in my project, so I started a test-project… with the same problem. 起初我以为我在项目中做错了事,所以我开始了一个测试项目……同样的问题。

Someone knows a way to fix this? 有人知道解决此问题的方法吗?

Have you tried adding self.tableView.bounces = YES; 您是否尝试过添加self.tableView.bounces = YES; to your viewController's viewDidLoad: message? 到您的viewController的viewDidLoad:消息?

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

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