Do I always have to call [super viewDidLoad] in the -viewDidLoad method?

前端 未结 8 829
[愿得一人]
[愿得一人] 2020-11-27 16:18

In Apple\'s scrollView example they don\'t call that. I always thought that\'s a must. Why should I call that anyways?

8条回答
  •  离开以前
    2020-11-27 16:25

    Just noticed that the static analyzer of Xcode 6 issues a warning if you do not call super in these functions. So it seems Apple now definitely wants us to call it.

提交回复
热议问题