2015-08-18 16:07:51.523 Example[16070:269647] the behavior of the UICollectionViewFlowLayout is not defined because: 2015-08-18 16:07:51.523 Example
I could solve it by putting super.prepare() at end of override func prepare() { }
super.prepare()
override func prepare() { }