2 UITableView in UIScrollView

I have UIScrollViewwith 2 pages in my application, and each page has UITableViewwith several lines in it. The problem is that the touches are really weird. If I want to go to the second page while I am on the first, I just scroll left to the right to go to another page, but UITableViewdiscovers that the napkins are like vertical napkins and β€œtake” touch. I have to try 3-4 times to successfully go to another page. This is very annoying, and I was wondering if anyone has a way to make the strokes better.

Thanks in advance.:)

+5
source share
7 answers

If you want to block scrolling:

scrollView.scrollEnabled = NO;
+4

customezed scroller bar ... ...... , ur , : ... thnk ... , u , .. , bcoz ....

+1

directionalLockEnabled scrollBar.

self.scrollBar.directionalLockEnabled = YES;

+1

frame.height tableview.frame.height.

tableView.

self.tableView.directionalLockEnabled = YES;
+1

When you move the page, just do it (UITableView)tblView.userInteractionEnabled = NO, so it triggers a touch event UIScrollView.

+1
source

It’s enough to scroll correctly

scrollViewContainer.delaysContentTouches = NO;
+1
source

An additional way to block scrolling.

1)

scrollViewContainer.delaysContentTouches = NO;

2)

scrollView.scrollEnabled = NO;

3)

self.scrollBar.directionalLockEnabled = YES;

Like it ....... I hope it will be useful for you.

0
source

All Articles