如何使用initwithnib語法聲明nib文件它顯示'Warning: passing argument 1 of initwithNibName:bundle: from Incompatible pointer type'
。如何聲明Nib文件?
我的發言是:提前
SpanishViewController *spanishview = [[SpanishViewController alloc]
initWithNibName:"LocalizeMeViewController.xib (es)"
bundle:[NSBundle mainBundle]];
感謝........
其字符串類型@ 「yourNibName」 – 2011-04-04 10:49:33
使用兼容的指針類型。沒有顯示一些代碼,這是我可以告訴的。 – 2011-04-04 10:49:43
使用此initWithNibName:@「LocalizeMeViewController」捆綁包:如果這會觸發警告,那麼將不會有 – 2011-04-04 10:56:08