Logging the class name of all UIViewControllers in a project

后端 未结 7 801
一生所求
一生所求 2020-12-28 22:51

We have received a HUGE project from outsourcing that we are trying to \"repair\". There are hundreds of view controllers within the project. Our goal is to

7条回答
  •  灰色年华
    2020-12-28 23:17

    Here is a solution to print the current view controller class name when it appears, in the console:

    • Create a Symbolic Breakpoint in Xcode
    • for Symbol, add -[UIViewController viewWillAppear:]
    • for Action, add a Debugger Command and the following expression:
    • expr -- (void) printf("

提交回复
热议问题