在Xcode 10上存档时出现分段错误
注意:
我的代码:
typealias ResponseBlock<T> = (_ sender: T) -> Void
Run Code Online (Sandbox Code Playgroud)
我在整个项目中使用它,如:
var callback: ResponseBlock<AnyObject>?
Run Code Online (Sandbox Code Playgroud)
在Xcode 10上存档时出错:
用法:
var refreshCells: ResponseBlock<[IndexPath]>?
viewModel.refreshCells = {indexPathList in
self.collectionView.reloadItems(at: indexPathList)
}
Run Code Online (Sandbox Code Playgroud)