I am using Martin R's answer to print NSSetUncaughtExceptionHandler in Swift.
How to use NSSetUncaughtExceptionHandler in Swift
func exceptionHandler(exception : NSException) { let alert = UIAlertController(title: "Exception", message: "\(exception)", preferredStyle: .Alert) self.presentViewController(alert, animated: true, completion: nil) print(exception) print(exception.callStackSymbols) }
But how can I display a message in a UIView. Like this

Since I received an error message in the compiler, I said that "the CC function pointer can only be formed from a reference to" func "or literal closure.
Handling unhandled exceptions and cues written by Matt Gallagher at Cocoa with love.

ios exception swift uiview
charles.cc.hsu Oct 05 '15 at 15:47 2015-10-05 15:47
source share