Skip to content

Instantly share code, notes, and snippets.

@maximveksler
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximveksler/9745511 to your computer and use it in GitHub Desktop.
Save maximveksler/9745511 to your computer and use it in GitHub Desktop.
@property (nonatomic) NSInteger *playPosition;
- (NSInteger *)playPosition
{
if (!_playPosition) {
_playPosition = [NSNumber numberWithInt:0]; // Error
} else {
_playPosition += 1;
}
return _playPosition;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment