旋转屏幕后横向打开viewController,UITableView水平滚动如何禁用UITableView水平滚动? 我还尝试使用以下代码
self.tableView.contentSize = CGSizeMake(self.tableView.frame.size.width, self.tableView.contentSize.height);
最佳答案
相同的代码粘贴
-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
self.tableViewProductChild.contentSize = CGSizeMake(self.tableViewProductChild.frame.size.width, self.tableViewProductChild.contentSize.height);
}
现在已经成功了,感谢您的帮助
关于ios - 如何在 iOS 6 中禁用 UITableView 水平滚动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15548694/