什么是覆盖父Var的正确语法?

时间:2016-11-11 03:59:56

标签: objective-c swift3 override

目标:使用Swift 3.0.1覆盖UIViewController的transitioningDelegate;基于Objective-C模型。也就是说,将Objective-C转换为其Swift 3.0.1等价物。
Apple transitioningDelegate Reference

目标C

- (void)setTransitioningDelegate:(id<UIViewControllerTransitioningDelegate>)transitioningDelegate
{
    super.transitioningDelegate = transitioningDelegate;
    self.presentationController.delegate = self;
}

Swift 3.0

enter image description here

这是正确的语法吗?
为什么我收到编译错误?

0 个答案:

没有答案