I can get all the methods of an objc class pretty easily, using
Class targetClass = [AClass class];
unsigned int methodClass = 0;
Method *methods = class_copyMethodList(targetClass, methodClass);
But I want to know if there is a way that I can get only the public methods of this class, either through another call I don't know about or by filtering this list. Visibility is arguably a joke in objc anyway, but I have to assume that something out there will let me do this.
Aucun commentaire:
Enregistrer un commentaire