プロジェクトを Xcode 8 で Swift3 に更新しましたが、このエラーが発生しましたが、そこで何ができるかわかりません。私はすでにグーグルで検索しましたが、何も見つかりませんでした。誰か私が作ることができるアイデアを持っていますか?
ここでエラー:
Objective-C セレクター 'collectionViewContentSize' を持つメソッド 'collectionViewContentSize()' は、同じ Objective-C セレクターを持つスーパークラス 'UICollectionViewLayout' からの 'collectionViewContentSize' のゲッターと競合します
public func collectionViewContentSize() -> CGSize {
let numberOfSections = collectionView?.numberOfSections
if numberOfSections == 0 {
return CGSize.zero
}
var contentSize = collectionView?.bounds.size
contentSize?.height = CGFloat(columnHeights[0])
return contentSize!
}