daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Aug 15th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top