我正在尝试在 swift 3中的EurekaUIViewController
中构建一个自定义演示者行,当点击它时,会显示一个.
该文档建议使用以下代码:
public final class CustomPushRow<T: Equatable>: SelectorRow<PushSelectorCell<T>, SelectorViewController<T>>, RowType {
public required init(tag: String?) {
super.init(tag: tag)
presentationMode = .show(controllerProvider: ControllerProvider.callback {
return SelectorViewController<T>(){ _ in }
}, completionCallback: { vc in
vc.navigationController?.popViewController(animated: true)
})
}
}
我将不得不替换SelectorViewController
为MyViewController
. 但是现在它给出了以下错误(即使没有替换 UIViewController 名称):
无法将“ControllerProvider”类型的值转换为预期的参数类型“ControllerProvider<_>”