我正在尝试使用 NSView 在 OS X 应用程序中使用 Swift 在 NSViewController 之间导航。
请您参考如下方法:
我不确定你想在这里问什么。我建议通过这些链接
Mac OS X Cocoa multiview application navigation
Easy Switching of "View Controllers" in Mac Apps (similar to iOS)
希望这有帮助,干杯。
编辑:
如果您是 swift 的新手,我建议您阅读 https://developer.apple.com/swift/第一的。您的方法在 swift 中将如下所示
func switchSubViews(newSubview : NSView) {
//Implementation
}
func prepareViews(){
//Implementation
}
