views:

14

answers:

0

Hello,

i've got still problems with delegating something like a UIScrollView.

For example, i've got 2 Scrollviews (Scrollview1 and Scrollview2)and i want to use the method

- (void)scrollViewDidScroll:(UIScrollView *)scrollView1

To interact to both Scrollviews like:

if (scrollView1 == scrollView2) {
    NSLog(@"similar");}

First, Where appears the -(void) scrollViewDidScroll, in the Main-Source or should i subclass the Scrollview1 ?) In Both Cases, the method isn't called when i scroll the scrollView1. Is the solution to delegate Scrollview1 like ' [Scrollview1 setDelegate:Scrollview1]; ' ? And how can i tell the method which ScrollView (i've got 5) is Scrollview2? To connect them via an Outlet isn't enough, right?

I hope you understand my problem,otherwise ask :)

Thanks for help