Guest User

Untitled

a guest
Aug 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. NSPredicate check for kind of object class
  2. [NSPredicate predicateWithFormat: @"className == %@", [someObject className]]
  3.  
  4. [NSPredicate predicateWithFormat: @"class == %@", [someObject class]]
  5.  
  6. NSPredicate* foo = [NSPredicate predicateWithFormat: @"className == %@", @"MyCustomView"];
Add Comment
Please, Sign In to add comment