You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The crash position stopped at @UIApplicationMain, and printed following log in console.
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
libc++abi.dylib: terminate_handler unexpectedly threw an exception
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
The text was updated successfully, but these errors were encountered: