You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the code: @property(weak) IBOutlet UIStepper *scoreStepper; [[[RACObserve(self.scoreStepper,value) skip:1] take:self.viewModel.maxPointUpdates] subscribeNext:^(id newPoints) { @strongify(self); self.viewModel.points = [newPoints doubleValue]; self.scoreUpdates++; }];
but the code of subscribe cannot be excute.
when I change the code like this: [[[self.scoreStepper rac_signalForControlEvents:UIControlEventTouchUpInside] take:10] subscribeNext:^(UIStepper * x) { @strongify(self); NSLog(@"value:%f",x.value); self.viewModel.points = x.value; self.scoreUpdates++; }];
it works!
So,I wonder why "RACObserve(self.scoreStepper,value) subscribeNext ..."cannot work?
The text was updated successfully, but these errors were encountered:
I have the code:
@property(weak) IBOutlet UIStepper *scoreStepper; [[[RACObserve(self.scoreStepper,value) skip:1] take:self.viewModel.maxPointUpdates] subscribeNext:^(id newPoints) { @strongify(self); self.viewModel.points = [newPoints doubleValue]; self.scoreUpdates++; }];
but the code of subscribe cannot be excute.
when I change the code like this:
[[[self.scoreStepper rac_signalForControlEvents:UIControlEventTouchUpInside] take:10] subscribeNext:^(UIStepper * x) { @strongify(self); NSLog(@"value:%f",x.value); self.viewModel.points = x.value; self.scoreUpdates++; }];
it works!
So,I wonder why "RACObserve(self.scoreStepper,value) subscribeNext ..."cannot work?
The text was updated successfully, but these errors were encountered: