Skip to content

Instantly share code, notes, and snippets.

Created August 20, 2013 17:14
Show Gist options
  • Save anonymous/6284357 to your computer and use it in GitHub Desktop.
Save anonymous/6284357 to your computer and use it in GitHub Desktop.
Simulate an abstract method in Objective-C
// Simulate abstract method
-(CGFloat)abstractFoo {
[self doesNotRecognizeSelector:_cmd];
return 0.0f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment