Skip to content

Instantly share code, notes, and snippets.

@SunXiaoShan
Created July 17, 2017 06:13
Show Gist options
  • Save SunXiaoShan/ce089584190b9e13ecb11eece3e736b0 to your computer and use it in GitHub Desktop.
Save SunXiaoShan/ce089584190b9e13ecb11eece3e736b0 to your computer and use it in GitHub Desktop.
DistinctUntilChangedDemo
RAC(self.labelView, text) = [RACObserve(objA, strContent) distinctUntilChanged];
objA.strContent = @"content1"; // 1st
objA.strContent = @"content1"; // 2nd
objA.strContent = @"content1"; // 3rd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment