是否有解決此問題的方法?Swift'沒有會員姓名'
class ViewController : UIViewController {
let collectionFlowLayout = UICollectionViewFlowLayout()
let collectionView = UICollectionView(frame: CGRectZero, collectionViewLayout: collectionFlowLayout)
}
的xcode給了我下面的錯誤
ViewController.swift: 'ViewController.Type' does not have a member named 'collectionFlowLayout'
我可以使它可選,並在init方法初始化它,但我正在尋找一種方法,使的CollectionView一讓,而不是一個變種
@MehulThakkar我想你的凱德在Xcode 6.1和它不工作。 – Greg 2014-11-06 09:47:56