Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

2 UITableView in a UIScrollView

I have a UIScrollView with 2 pages in my app and each page has a UITableView with some rows 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 one, i would simply swipe to the left from the right to go to the other page but the UITableView detects the swipe as a vertical swipe and "takes" the touch. I have to try 3-4 times to be successfully able to go to the other page. This is very annoying and I was wondering if somebody had a way to make the touches better.

Thanks in advance. :)

like image 628
David Murray Avatar asked Jul 24 '12 04:07

David Murray


2 Answers

If you want to lock the scrollview:

scrollView.scrollEnabled = NO;
like image 185
Raju Avatar answered Sep 20 '22 20:09

Raju


you can keep customezed scroller bar for scroll view ... so user will scroll from that scroller...... and ofcource if u r inserting table view in scroll view then there are two delegates one of scroller and other of table now how u will control both...i thnk its not good ...so make any one of them customize so u will get its controll how you want.. and its best always that we keep customize scroll bar bcoz its very outer part of coding....

like image 37
Mayur Bhoir Avatar answered Sep 18 '22 20:09

Mayur Bhoir