Check if a method exists

前端 未结 5 2055
半阙折子戏
半阙折子戏 2020-12-13 01:58

Is there any way I can test if a method exists in Objective-C?

I\'m trying to add a guard to see if my object has the method before calling it.

5条回答
提交回复
热议问题