Skip to content

Instantly share code, notes, and snippets.

@ArchieR7
Created June 6, 2017 02:04
Show Gist options
  • Select an option

  • Save ArchieR7/6af2af9f79a51a53b2093458109f5155 to your computer and use it in GitHub Desktop.

Select an option

Save ArchieR7/6af2af9f79a51a53b2093458109f5155 to your computer and use it in GitHub Desktop.
[self.KVOController observe:self
keyPath:NSStringFromSelector(@selector(observeObjectName))
options:NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew
block:^(id _Nullable observer, id _Nonnull object, NSDictionary<NSString *,id> * _Nonnull change) {
//do something
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment