Skip to content

Instantly share code, notes, and snippets.

@leafduo
Created October 29, 2012 06:42
Show Gist options
  • Select an option

  • Save leafduo/3971970 to your computer and use it in GitHub Desktop.

Select an option

Save leafduo/3971970 to your computer and use it in GitHub Desktop.
__weak typeof(self) bself = self;
[self addObserverForKeyPath:@"myComment" task:^(id obj, NSDictionary *change) {
__strong typeof(bself) cself = bself;
[cself->_myCommentButton setTitle:self.myComment forState:UIControlStateNormal];
}];
@leafduo

leafduo commented Oct 29, 2012

Copy link
Copy Markdown
Author

_myCommentButton 是成员变量

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment