【发布时间】:2020-08-17 23:36:01
【问题描述】:
我从下面的代码中收到以下错误。我不知道如何解决这个错误,也找不到有用的答案。
void 函数中出现意外的非 void 返回值
private func collectionView( _ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath){
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "a11", for: indexPath)
return cell ;
}
func UICollectionViewCell() {
}
【问题讨论】:
-
能否请您先查看 Apple 文档developer.apple.com/documentation/uikit/…
标签: swift