Open showmylym opened 8 years ago
Oh, I got it. The reason of crash is that
imagePicker?.navigationBar.titleTextAttributes = [NSFontAttributeName: self.titleLabel.font, NSForegroundColorAttributeName: imagePicker?.navigationBar.tintColor]
type of titleTextAttributes is [String: Any]?,so that self.titleLabel.font and imagePicker?.navigationBar.tintColor can't be optional type. It won't be crash if force unwrap optional value before use it.
The crash position stopped at @UIApplicationMain, and printed following log in console.
Present code is