I have two scrollViews i.e one inside other, -OuterScroll ----InnerScroll
Need Outer scrollView to stop automatically and inner starts in a single scroll when outer ScrollView reaches contentOffSet value of greater than 300.
So far..
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
[self.view endEditing:YES];
if (scrollView ==scrollSuperView)
{
if (scrollView.contentOffset.y>300) {
[scrollContentView setScrollEnabled:YES];
}else if (scrollView.contentOffset.y<10){
[scrollContentView setScrollEnabled:NO];
}
}
}
By the way scrollSuperView is outerScroll and scrollContentView is inner. Any help appreciated.
1.scrollSuperView (Outer) frame = CGRect(0, 0, 320, 468) contentSize = CGSizeMake(320, 600)
2.scrollContentView (Inner) frame = CGRect(0, 300, 320, 468) contentSize = CGSizeMake(320, 600)
So i have above two scrollViews as mentioned outer and inner Once outer scrollView reaches content offset of >300 then scrollEvent much be passed to inner ScrollView if user is scrolling by putting finger on inner ScrollView..
Hope its more clear now.