久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

UIScrollView 內的 UITableView 滾動問題

UITableView scrolling problems when inside a UIScrollView(UIScrollView 內的 UITableView 滾動問題)
本文介紹了UIScrollView 內的 UITableView 滾動問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個 UIScrollView(帶有分頁),我向其中添加了三個 UIView.這些 UIView 中的每一個內部都有一個 UITableView.因此,用戶應該能夠水平滾動到他想要的頁面,然后在相應的表格中垂直滾動.

I have a UIScrollView (with paging) to which I add three UIViews. Each of these UIViews has a UITableView inside. So, the user should be able to scroll horizontally to the page he wants and then scroll vertically in the corresponding table.

但是,有些表格不接收滾動手勢.通常第一個確實表現良好,但其他的則不然.我無法選擇單元格,也無法上下滾動表格.

However, some of the tables don't receive the scrolling gestures. Usually the first one does behave good, but the other ones do not. I can't select cells nor scroll the table up or down.

我使用 UIScrollView 的默認設置,除了 viewDidLoad 中定義的這些設置:

I used the default settings for the UIScrollView, except for these ones defined in the viewDidLoad:

- (void)viewDidLoad
{
    [super viewDidLoad];

    //Load the view controllers
    [self loadViewControllers];

    //Configure the scroll view
    self.scrollView.pagingEnabled = YES;
    self.scrollView.contentSize = CGSizeMake(CGRectGetWidth(self.scrollView.frame) * viewControllers.count, CGRectGetHeight(self.scrollView.frame));
    self.scrollView.showsHorizontalScrollIndicator = NO;
    self.scrollView.showsVerticalScrollIndicator = NO;
    self.scrollView.scrollsToTop = NO;
    self.scrollView.delegate = self;

    //Configure the page control
    self.pageControl.numberOfPages = viewControllers.count;
    self.pageControl.currentPage = 0;
}

我不知道為什么我不能滾動某些表格...任何幫助將不勝感激.

I can't figure out why I can't scroll some of the tables... Any help would be greatly appreciated.

提前致謝!

推薦答案

我要檢查的事情:

  1. 檢查您的視圖層次結構 - 是否有東西放置在您的 UITableView 之上,導致它沒有收到點擊?
  2. 您的 UITableView 是否在任何地方都被禁用了?我會在 tableView:didSelectRowAtIndexPath: 中設置一個斷點,看看是否正在調用該方法.
  3. 查看這篇文章
  1. Check your View Hierarchies - Is something being laid on top of your UITableView, causing it not to receive a tap?
  2. Are your UITableViews being disabled anywhere? I would set a breakpoint in tableView:didSelectRowAtIndexPath: and see if that method is being called.
  3. Check this post

我猜這些不是肯定的答案,但希望它們能幫助發現問題!

I guess those aren't sure-fire answers but hopefully they'll help discover the problem!

這篇關于UIScrollView 內的 UITableView 滾動問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Stop a UITableView from automatically scrolling(阻止 UITableView 自動滾動)
iOS UIScrollView Lazy Loading(iOS UIScrollView 延遲加載)
using iOS 6.0 SDK and building for iOS 5 Target causes UIScrollView setMinimumZoomScale to fail when running on iOS 5 simulator(在 iOS 5 模擬器上運行時,使用 iOS 6.0 SDK 并為 iOS 5 Target 構建會導致 UIScrollView setMinimumZ
Create partial-screen UIPageViewController programmatically(以編程方式創建部分屏幕 UIPageViewController)
how to make an ImageView zoomable with or without ScrollView.?(如何使用或不使用 ScrollView 使 ImageView 可縮放?)
UIImageView zoom and pinch in UIScrollView(UIImageView 在 UIScrollView 中縮放和捏合)
主站蜘蛛池模板: 日韩精品在线看 | 国产精品视频综合 | 欧美日韩中文字幕在线播放 | www.日本在线 | 国产99久久精品一区二区永久免费 | 日韩精品在线看 | 国产欧美日韩在线 | 国产成人精品免高潮在线观看 | 一级毛片视频在线 | 精品99在线 | 国产黄色小视频在线观看 | 婷婷色网 | 99精品一区二区三区 | 午夜色播| 国内精品久久久久 | 天堂精品 | 亚洲在线一区二区 | 九九免费 | 日韩三极| 亚洲精品国产a久久久久久 中文字幕一区二区三区四区五区 | 九九久久久 | 欧美日本久久 | 91麻豆精品国产91久久久资源速度 | 国产欧美在线观看 | 一区二区三区精品视频 | 日韩精品免费看 | 午夜精品久久久久久久久久久久 | 国产精品久久久久久吹潮 | 黑人巨大精品欧美黑白配亚洲 | 91欧美精品成人综合在线观看 | 欧美一区二区三区精品免费 | 国产精品伦一区二区三级视频 | 亚洲视频免费观看 | 男人天堂网址 | 成人av高清在线观看 | 欧美久久一区 | 欧美精品1区 | 欧美日韩高清在线观看 | 久久精品小短片 | 91av亚洲| av网站免费观看 |