2014-06-13 76 views
-4

我收到錯誤不可用: initWithURL不可用:無法在IOS 上以下行:initWithURL不可用:在IOS

 HomeViewController *wBrowser = [[HomeViewController alloc]  initWithURL:[NSURL URLWithString:urlString]];

這件事發生時,我在Xcode 4交換我的應用程序代碼。 X到Xcode 5.1.1 而且,此活動是通過iTunes分發應用程序所必需的。

請建議

+0

initWithURL它不是一個UIViewController方法。確保你已經在HomeViewController中聲明瞭這個方法 –

+0

請指定你想要的東西.............. –

回答

2

InitWithURL:不是UIViewController的方法。如果您爲HomeViewController創建了自定義初始化方法,請在HomeViewController頭文件中聲明此方法。