static let didReceiveResponseSelector : Selector = #selector((NSURLConnectionDataDelegate.connection(_:didReceive:)) as (NSURLConnectionDataDelegate) ->(NSURLConnection,URLResponse) ->())
此代碼返回錯誤:不明確使用「連接(_:didReceive :)」的
Ambiguous use of 'connection(_:didReceive:)'
我提到GitHub上蘋果的官方發展線程,我很尊敬的語法,但不工作:
Referencing the Objective-C selector of a method
不幸的是,'as'鑄造多義性並不在協議中聲明的方法工作。請檢查[此線程](http://stackoverflow.com/q/39221563/6541007)。 – OOPer