Swift4.x
控制器自带xib加载在iOS8系统崩溃
// MARK: - 解决控制器自带xib加载在iOS8系统崩溃的问题。iOS8.x,需要给控制器的xib重写一下init 方法 override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { super.init(nibName: "XXViewController", bundle: nil) } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") }