iphone - convert instance variable into string? -


If I have a uiviewcontroller with a frequency variable "direction" I do MyViewController.direction

I can, but if I do not want a string with a valid name, then I need a "direction".

Is this possible? You can retrieve the list of properties by using the <<> code> class_copyPropertyList and you can use the property_getName return the property given by the first method and retrieve the property name. to do.

You can read more information on it in the Objective-R Runtime Programming Guide in the declared Properties section.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -