[iOS]XIB拖动控件时报错
使用xib创建的UICollectionReusableView,拖动控件时发生报错:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSObject 0x1d4013cf0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key tempLab.'
修复:
拖动控件时Object不选默认的File‘s Owner,选择自定义的“HeaderReusableView”就能解决。