Created
May 7, 2013 14:06
-
-
Save tamaki-shingo/5532822 to your computer and use it in GitHub Desktop.
対象オブジェクトに特定のメソッドが存在するかを確認する。
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
if ([hogeImageView respondsToSelector:@selector(copyWithZone:)]) { | |
LOG(@"王大人,copyWithZoneメソッド確認!"); | |
}else{ | |
LOG(@"お前のcopyWithZone:ねーから!wwww"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment