Created
April 21, 2012 15:18
-
-
Save onevcat/2437689 to your computer and use it in GitHub Desktop.
intropection1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id obj = someInstance; | |
if ([obj isKindOfClass:someClass]) | |
{ | |
someClass *classSpecifiedInstance = (someClass *)obj; | |
// Do Something to classSpecifiedInstance which now is an instance of someClass | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment