UIAlertController or Bust

You know what I never liked? UIAlertView. You know what’s been deprecated in iOS 8?

That’s right.


It (along with UIActionSheet) has been replaced by UIAlertController. There’s a great full rundown of the differences between old-style alerts and the new UIAlertController over at NSHipster, but below is a quick example of how to show a simple confirmation alert:

I especially love the flexibility of UIAlertActionStyle, which allows you to specify whether an action is a cancellation or is in some way destructive.

Not an Objective-C Replacement…

Comparison of Modern C++ and Apple’s Swift Programming Language Syntax

Most modern 3rd-generation languages have many similarities, it just takes getting use to the small differences in order to be able to code between them.

The more Swift I write the more I’ve realised: Swift isn’t a modern take on Objective-C — rather, it’s Apple’s take on C++. This time last year I couldn’t imagine using an Apple-only replacement for C++14; now I can’t imagine writing for iOS in anything else.