xcode - IOS: delegate of many scrollViews -



xcode - IOS: delegate of many scrollViews -

i have code:

- (void)scrollviewdidscroll:(uiscrollview *)scrollview { [nsobject cancelpreviousperformrequestswithtarget:self]; [self performselector:@selector(scrollviewdidendscrollinganimation:) withobject:nil afterdelay:0.01]; } - (void) scrollviewdidendscrollinganimation:(uiscrollview *)scrollview{ [nsobject cancelpreviousperformrequestswithtarget:self]; if (scrollview == scrollv){ nslog(@"scroll di scrollv"); } }

i don't understand why don't print in console "scroll di scrollv", set delegate scrollv, don't work

did want this?:

[self performselector:@selector(scrollviewdidendscrollinganimation:) withobject:scrollview afterdelay:0.01];

you weren't passing scrollview object if (scrollview == scrollv) never nail unless scrollv nil, i'm guessing isn't.

ios xcode delegates uiscrollview

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -