Get an ivar or property from a NSString

后端 未结 2 419
孤独总比滥情好
孤独总比滥情好 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:58

    For any properties you can just use [object valueForKey:myString] and it'll be done. This can also find ivars in certain situations.

提交回复
热议问题