错误类型:NSInternalInconsistencyException(SIGABRT)
详情:Auto Layout still required after executing -layoutSubviews. MttFeedsVideoActionBar's implementation of -layoutSubviews needs to call super.ios
根据提示,在使用autolayout的场景下,actionbar的layoutsubview()方法里,须要在[super layoutsubviews()] 调用以前,先调用autolayout的约束方法,因此就这么处理:ide
- (void)layoutSubviews { if([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) { [super layoutSubviews]; } //code needs to be excuted [self setLayout]; if([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) { [super layoutSubviews]; } }