Why does using headerReferenceSize with self-sizing cells in a collection view cause a crash in iOS 8?
问题 I managed to figure out the approach for self-sizing collection view cells under iOS 8. I want to do this as a part of a accessory view. I get a crash ... the interesting part of the stacktrace is as follows: ** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil' *** First throw call stack: ( 0 CoreFoundation __exceptionPreprocess + 165 1 libobjc.A.dylib objc_exception_throw + 45 2 CoreFoundation -[_