Blog

Sigabrt

Debugging Sigabrt error on Main

The dreaded Sigabrt error in Xcode is as useless as censored. To help debug it, wrap it in a Try/Catch. That should give you a more meaningful error. Happy debugging!! int main(int argc, char *argv[]) { int retVal = 0; @autoreleasepool { @try { retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } @catch (NSException *exception) […]




Add Custom UIButton to UIAlertController

With the release of iOS 9, UIAlertView has been deprecated and should be replaced with UIAlertController. UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead There are plenty of tutorials showing how this can be done. If you’re looking to add custom buttons to your UIAlertController, the code below will show you how […]