【问题标题】:initWithURL is unavailable: not available in IOS [closed]initWithURL 不可用:在 IOS 中不可用 [关闭]
【发布时间】:2014-08-03 18:22:36
【问题描述】:

我收到错误: initWithURL 不可用:在 IOS 中不可用 在以下行:

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

这发生在我将应用程序代码从 Xcode 4.X 切换到 Xcode 5.1.1 时 并且,此活动是通过 iTunes 分发应用程序所必需的。

请推荐

【问题讨论】:

  • initWithURL 它不是 UIViewController 方法。确保您已在 HomeViewController 中声明此方法
  • 请具体说明您想要什么......

标签: ios xcode4 xcode5


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-18
    • 2020-12-24
    相关资源
    最近更新 更多