1.没实现代理方法
Type 'HomeViewController' does not conform to protocol 'UICollectionViewDataSource'ZZ
2.我是在使用YY同学的YYModel的时候,遇到数组,没有加上modelContainerPropertyGenericClass方法
fatal error: NSArray element failed to match the Swift Array Element type
3.我是在ios 8.4的iphone6上遇到的,原因是iOS8有bug,不能正常载入nib,在ios9上修复了
outlet是nil
解决方法
class XXController: UIViewController{
@IBOutlet weak var lablelX: UILabel!
@IBOutlet weak var labelY: UILabel!
init() {
super.init(nibName: "XXController", bundle: nil)
}
required init?(coder aDecoder: NSCoder) {
super.init(nibName: "XXController", bundle: nil)
}
}