I found this code:
It shows a label about a class of current UIViewController.
How to realize the similar thing for cocos2d? It is enough easy with subclassing but is enough hard with a category. And if I use subclassing for an existing project then it causes a lot of changes in a lot of files.