錯誤類型: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]; } }