Skip to content

Instantly share code, notes, and snippets.

@vikage
Created July 21, 2019 09:14
Show Gist options
  • Save vikage/5b6f7e9f11f6bf212ed64e9e46aeac25 to your computer and use it in GitHub Desktop.
Save vikage/5b6f7e9f11f6bf212ed64e9e46aeac25 to your computer and use it in GitHub Desktop.
isKindOfClass implement
- (BOOL)isKindOfClass:(Class)cls {
for (Class tcls = [self class]; tcls; tcls = tcls->superclass) {
if (tcls == cls) return YES;
}
return NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment