unknown type name in objective c

前端 未结 6 1633
生来不讨喜
生来不讨喜 2021-01-03 22:55

I\'m pretty new to objective c, and having some basic problems.

I wrote a simple program using a navigator, and everything worked fine. then I added few lines of cod

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 23:19

    This problem looks like a typo because class names usually start with an uppercase character. Therefore, mainController could/should be MainController. Check the class name to see if the error is indeed a typo, because the compiler is telling you it cannot find any class called mainController.

提交回复
热议问题