Get all methods of an Objective-C class or instance

前端 未结 4 1164
醉梦人生
醉梦人生 2020-12-07 12:38

In Objective-C I can test whether a given class or instance responds to certain selectors. But how can query a class or instance for all its methods or properties of a class

4条回答
  •  有刺的猬
    2020-12-07 13:28

    You'll want to use the Objective C runtime methods, see here: https://developer.apple.com/reference/objectivec/objective_c_runtime

提交回复
热议问题