【发布时间】:2014-06-17 07:10:46
【问题描述】:
我正在尝试使用 swift 构建一个简单的计算器应用程序。我创建了两个具有基本和高级选项的视图控制器。早期的 Obj-C 曾经这样做过
[[AViewController alloc] initWithNibName:@"nibName" bundle:nil]
在 swift 中,我什至无法导入我的新视图控制器。但我仍然可以声明为var aViewController:AViewController? 并使用它。但我卡在加载笔尖
我尝试使用AViewController(nibName: "nibname", bundle: nil),但一切都导致编译器错误Could not find an overload for __conversion that accepts the supplied arguments
【问题讨论】: