lundi 22 juillet 2019

get number of methods and variable in a class Swift iOS like reflection in Java

How to get number of methods and variable in a class Swift iOS like reflection in Java.

like get Class's getDeclaredMethods() and getDeclaredFields().
getDeclaredMethods()       //will return array of methods defined.
getDeclaredFields()        //will return array of variables defined.





Aucun commentaire:

Enregistrer un commentaire