Hello,
I have created an instance of NSTimer:
But in the checkLoggedIn function I want to access functions of the where I create the timer. But how do I send these as parameters to the function checkLoggedIn.
This doesn't work.
Thanks,
Kristof
I have created an instance of NSTimer:
Code:
checkTimer = [[NSTimer scheduledTimerWithTimeInterval: (time * 0.1f) target:self selector:@selector(checkLoggedIn) userInfo:self repeats:true] retain];
But in the checkLoggedIn function I want to access functions of the where I create the timer. But how do I send these as parameters to the function checkLoggedIn.
Code:
checkTimer = [[NSTimer scheduledTimerWithTimeInterval: (time * 0.1f) target:self selector:@selector(checkLoggedIn:) userInfo:self repeats:true withObject:@selector(fn1):@selector(fn2)] retain];
Thanks,
Kristof