Monday, September 23, 2013

0 0 ios development uiscrollview nested inside a uiscrollview

Scrollview which is too small to put a scroll for pictures.
Scrollview is large enough for the entire view scrollable. . For example, where there are many other view imageview etc.,
When we encounter such a problem: I have to scroll large enough scrollview, put the picture scroll scrolling action does not follow, it has been hanging in a fixed position. Solving Jiya
Reply:
Assuming a large scrollview is A, small scrollview is B, if it is:
 [A addSubview: B] 
Then scroll when A, B will certainly follow scroll
If so:
 [self.view addSubview: A]; [self.view addSubview: B] 
then rolled when the A, B will not move
You say you want to achieve the effect of A, then B can not be a child view.
Because of limited capacity, we want to help you, if there is a good way to share, thank you.

No comments:

Post a Comment