Friday, 23 August 2013

How to check if an id points to a CGRect?

How to check if an id points to a CGRect?

Supposing we have:
id value = [self valueForKey:@"frame"];
BOOL valueIsCGRect = ???;
How can I decide? Should I cast id to something?

No comments:

Post a Comment