ios - How to quickly print out all the properties in a NSObject and its derivatives? -
say, have object of uicolor, can print out debug information of property information?
i need print properties red, blue, green components.
if log uicolor object so:
uicolor *color = [uicolor redcolor]; nslog(@"%@",color);
it output uidevicergbcolorspace 1 0 0 1
represents rgba value of color object. these numbers range 0 1.
Comments
Post a Comment