0

Would it be possible to have a splitview controller that controls the offset of a UIScrollView which is in the detail view.

Basically I have one long image inside a scroll frame in the detail view and I want to be able to jump to parts of the image by using the MastwerViewController table as a "navigation" bar.

Any help would be appreciated.

Thanks, Alex

4

2 に答える 2

0

最初に、マスタービューをクリックしたときに表示する部分に応じて scrollView のオフセット値を見つける必要があります。次に、それらのオフセット値をこのメソッドにバインドします

-(void) MoveScrollView:CGPointMake(CGFloat X, CGFloat Y)
{
     [scrollView setContentOffset:CGPointMake(CGFloat X, CGFloat Y) animated:YES];
}
于 2012-08-06T11:37:21.623 に答える