2016-08-02 83 views
1

我有一些將我的代碼遷移到Swift 3(Xcode 8 beta 4)的問題。Swift 3 subclassing OperationQueue

import Foundation 

    class MyOperationQueue: Foundation.OperationQueue { 
    override func addOperation(_ op: Operation) { 
    .... 
    } 

我收到這兩個錯誤: enter image description here

回答

1

找到解決方案:

override func addOperation(_ op: Foundation.Operation) { 
    .... 
}