Upvote:2

-(void)myFunction:(NSTimer *)timer{
    NSLog(@" dict : %@",timer.userInfo);
}

More Answer related to the Same Query

Upvote:2

- (void)urTimerMethod:(NSTimer *)timer {
        NSDictionary *dict = [timer userInfo];
}

Upvote:0

-(void)GetTheData1:(NSString *)str1 GetTheData2:(NSString *)str2

NSTimer  *timer = [NSTimer scheduledTimerWithTimeInterval:0.0 target:self selector:@selector(mymethod) userInfo:nil repeats:YES];

- (void) mymethod {
[self performSelector:@selector(GetTheData1:GetTheData2:) withObject:str1 withObject:str2];

}

Credit Goes to: stackoverflow.com

Related question with same questions but different answers