错误 "Missing argument for parameter 'coder' in call"
Error "Missing argument for parameter 'coder' in call"
我正在尝试 运行 此代码,但我收到一条错误消息
调用中参数 'coder' 缺少参数
如果有人可以帮我解决这个错误。
完整代码请访问:https://github.com/aidev1065/WWDC2018_Scholarship_Submission-Accepted/blob/master/README.md
let vc = PageViewController()
vc.modalPresentationStyle = .formSheet
present(vc, animated: true, completion: nil)
在 PageViewController 中 class 删除旧方法 init 并添加新方法
override init(transitionStyle style: UIPageViewController.TransitionStyle, navigationOrientation: UIPageViewController.NavigationOrientation, options: [UIPageViewController.OptionsKey : Any]? = nil) {
super.init(transitionStyle: .scroll, navigationOrientation: .horizontal, options: options)
}
你的问题就迎刃而解了
我正在尝试 运行 此代码,但我收到一条错误消息 调用中参数 'coder' 缺少参数 如果有人可以帮我解决这个错误。
完整代码请访问:https://github.com/aidev1065/WWDC2018_Scholarship_Submission-Accepted/blob/master/README.md
let vc = PageViewController()
vc.modalPresentationStyle = .formSheet
present(vc, animated: true, completion: nil)
在 PageViewController 中 class 删除旧方法 init 并添加新方法
override init(transitionStyle style: UIPageViewController.TransitionStyle, navigationOrientation: UIPageViewController.NavigationOrientation, options: [UIPageViewController.OptionsKey : Any]? = nil) {
super.init(transitionStyle: .scroll, navigationOrientation: .horizontal, options: options)
}
你的问题就迎刃而解了