iOS get property class

后端 未结 4 2130
粉色の甜心
粉色の甜心 2021-02-06 09:55

I\'m trying to get a list of all the properties of an unknown class and the class of every property. By the moment I get a list of all the properties of an object(I do it recurs

4条回答
  •  一生所求
    2021-02-06 10:24

    UPDATED

    This doesn't work for values that are nil. Instead you should use the runtime C API to obtain the class from the corresponding ivar or accessor method.

提交回复
热议问题