我開發的iPhone應用程序,現在我還需要創建iPad上的這個相同的應用程序,我有以下文件兩個nib文件與.h和.m連接?
LoginViewController.h
LoginViewController.m
LoginViewController.xib
now i added new file for ipad:
LoginViewController~ipad.xib
現在我得到一個錯誤:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "LoginViewController" nib but the view outlet was not set.'
檢查:-http://stackoverflow.com/questions/16787664/load-another-view-to- exist-tab-on-uitabbarcontroller/16787787#16787787 –
'LoginViewController〜ipad.xib'->'view'需要在Interface Builder中設置爲'File Owner's'->'view'屬性。 – Amar
這個職位:http://stackoverflow.com/questions/4763519/loaded-nib-but-the-view-outlet-was-not-set-new-to-interfacebuilder解釋一切 – lakesh