tags:

views:

13

answers:

1

Hi friends ..

i want to check lineHeight property of font is is deprecated or not using respondsToSelector . As respondsToSelector takes only method name .. how can i assign property to it ??

+2  A: 

First, check the documentation for the property. If it doesn't specify a custom getter, the method name is the same as the property name.

 if ([myFont respondsToSelector(lineHeight)]) { ...

See the section labeled "Accessor Method Names" in Apple's Objective-C Programming Language document for more details on getter and setter names for declared properties.

Robot K