UIViewScrollviw UITableView subview scrolling. IOS

Posted by user1484810 on Stack Overflow See other posts from Stack Overflow or by user1484810
Published on 2012-10-24T04:55:26Z Indexed on 2012/10/24 5:01 UTC
Read the original article Hit count: 255

I have a UIScrollview with a UITableview subview.

The UIScrollview scrolls the UITableView horizontally. The UITable view naturally scrolls up and down.

If a user places their finger on the UitableView, and moves (swipes) horizontally,

The delegate method below is invoked

  • (void)scrollViewDidScroll:(UIScrollView *)scrollView

with scrollView isEqual theUIScrollView

If the user lifts their finger and places it back down on the UITableView and moves in a vertical direction

The delegate method below is invoked

  • (void)scrollViewDidScroll:(UIScrollView *)scrollView

with scrollView isEqual = theUITable

If however the user places their finger and moves in a horizontally

  • (void)scrollViewDidScroll:(UIScrollView *)scrollView

with scrollView isEqual theUIScrollView

If the user then moves the finger (without lifting it) in a vertical direction.

delegate method scrollViewDidScroll is not invoked at all. (The reverse is true too.)

I note that the "Pulse News" app seems to behave in the above manner..

Ultimately I want to figure out how to get the UITableView and UIScrollview moving in a "unidirectional" fashion, with one finger kept on the screen.

Thanks...

© Stack Overflow or respective owner

Related posts about uitableview

Related posts about uiscrollview