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

UIScrollView 內(nèi)的 UITableView 滾動問題

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

問題描述

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

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.

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

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 的默認設(shè)置,除了 viewDidLoad 中定義的這些設(shè)置:

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. 檢查您的視圖層次結(jié)構(gòu) - 是否有東西放置在您的 UITableView 之上,導(dǎo)致它沒有收到點擊?
  2. 您的 UITableView 是否在任何地方都被禁用了?我會在 tableView:didSelectRowAtIndexPath: 中設(shè)置一個斷點,看看是否正在調(diào)用該方法.
  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

我猜這些不是肯定的答案,但希望它們能幫助發(fā)現(xiàn)問題!

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

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

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

相關(guān)文檔推薦

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 構(gòu)建會導(dǎo)致 UIScrollView setMinimumZ
Create partial-screen UIPageViewController programmatically(以編程方式創(chuàng)建部分屏幕 UIPageViewController)
how to make an ImageView zoomable with or without ScrollView.?(如何使用或不使用 ScrollView 使 ImageView 可縮放?)
UIImageView zoom and pinch in UIScrollView(UIImageView 在 UIScrollView 中縮放和捏合)
主站蜘蛛池模板: 天久久 | 91亚洲国产成人久久精品网站 | 精品国产免费一区二区三区五区 | 久久蜜桃精品 | 国产精品揄拍一区二区 | 欧美色图综合网 | 久久久久久久网 | 国产精品成人一区二区三区夜夜夜 | 在线亚洲免费 | 99精品国自产在线观看 | 美女久久视频 | 国产99久久 | 91在线精品一区二区 | 亚洲国产精品一区二区久久 | 久久成人免费视频 | 成年免费视频 | 欧美一级特黄aaa大片在线观看 | 国产一级片在线观看视频 | 久久精品一级 | 日韩在线免费视频 | 日韩成人免费视频 | 国内自拍视频在线观看 | 久久久久国产精品免费免费搜索 | 午夜在线影院 | 999热精品视频 | 国内久久 | 一色桃子av一区二区 | 日本不卡免费新一二三区 | 一区二区三区四区免费观看 | 麻豆一区 | 99久久影院 | 噜噜噜噜狠狠狠7777视频 | 欧美福利视频 | 在线看一区二区三区 | 亚洲精品一区二区网址 | 亚洲国产成人久久综合一区,久久久国产99 | 国产视频久久 | 欧美一级在线观看 | 97在线观视频免费观看 | 亚洲精品欧美精品 | 国产成人免费视频网站高清观看视频 |