對於loadView和viewDidLoad的解釋

  綜上: 如果當前的VC不使用Interface Builder,請覆蓋這個方法,反之如果使用了,則一定不能覆蓋這個方法(you must not overridethis method)。 loadView這個方法負責創建當前VC的根視圖的視圖層級(view hierachy),在這裏給self.view賦值(non-nilvalue),並且不要調用[super loadView];(Your
相關文章
相關標籤/搜索