initWithURL不可用:在IOS中不可用

initWithURL不可用:在IOS中不可用,ios,xcode4,xcode5,Ios,Xcode4,Xcode5,我得到一个错误: initWithURL不可用:在IOS中不可用 在下面一行: HomeViewController *wBrowser = [[HomeViewController alloc] initWithURL:[NSURL URLWithString:urlString]]; HomeViewController*wBrowser=[[HomeViewController alloc]initWithURL:[NSURL URLWithString:urlString]

我得到一个错误: initWithURL不可用:在IOS中不可用 在下面一行:

HomeViewController *wBrowser = [[HomeViewController alloc] initWithURL:[NSURL URLWithString:urlString]]; HomeViewController*wBrowser=[[HomeViewController alloc]initWithURL:[NSURL URLWithString:urlString]]; 这是在我将应用程序代码从Xcode 4.X切换到Xcode 5.1.1时发生的 而且,通过iTunes分发应用程序需要此活动


请建议
InitWithURL:
不是
UIViewController
的方法。如果您已经为
HomeViewController
创建了自定义初始化方法,请在
HomeViewController
头文件中声明此方法。

initWithURL它不是UIViewController方法。确保已在HomeViewController中声明此方法,请指定所需的内容。。。。。。。。。。。。。