From this answer, I know that I can get the name of the class type using
NSStringFromClass(YourClassName)
But I actually also need the name of the current object instance. So if I have code like this:
let loginForm = LoginFormViewController();
I want to actually get the loginForm
in string, within the implementation of LoginFormViewController
.
How can I do that?