- Swift part3
384 :デフォルトの名無しさん[sage]:2014/09/06(土) 13:02:49.29 ID:1xvByH3n - ネストしまくるとプロトコルのメソッド補完されなくなるのなんで?
import UIKit protocol A { func doSomethingWithB((b : B) -> Void) -> Void } protocol B { func doSomethings() -> Void } func doSomethingWithA((a : A) -> Void) { } doSomethingWithA { (a) -> Void in a.doSomethingWithB({ (b) -> Void in b.doS //doSomethingが出てこない }) }
|