Logging the class name of all UIViewControllers in a project

后端 未结 7 813
一生所求
一生所求 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:28

    Do the view controllers share a common base class? if so you could just put it there in the base class' implementation of [viewDidAppear:]. If they do not share a common base, then perhaps that would be a worthwhile task as it could be useful anyways going forwards (common analytics code, etc.)

提交回复
热议问题