我正在尝试使用 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
}
关于macos - 您如何使用 Swift 在 Cocoa 应用程序的 View 之间导航?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29338466/