How do I pass a block, and what would it look like, in the method incrementCount:completion
to get the property self.count
returned after its increment in the CounterClass? I'm not sure if the way I defined the block parameter (void(^)(void))callback;
in the method is correct i.e. should it also have a return value?
ViewController
[NSTimer scheduledTimerWithTimeInterval:3.0
target:self.counterClass
selector:@selector(incrementCount:completion:)
userInfo:nil
repeats:YES];
CounterClass
-(void)incrementCount:(NSTimer *)timer completion:(void(^)(void))callback;
{
self.count += 1;
}