Get an ivar or property from a NSString

后端 未结 2 420
孤独总比滥情好
孤独总比滥情好 2021-01-19 15:26

Can we get an ivar or a property from a NSString like we can get a class from a NSString with the function <

2条回答
  •  野性不改
    2021-01-19 15:48

    There are a number of functions in the Objective-C Runtime that let you get the list of ivars, properties, and methods associated with a given class, and then to get information about individual ivars, properties, and methods. Take a look at the Objective-C Runtime Reference.

提交回复
热议问题