I have a an objective-c class (RDAlertView) which create an Alert (UIAlertView for ios < 8 and UIAlertController for ios >=8 )
(RDAlertView)
Here is the code in Object
These methods are treated like constructors. You can call them like this:
var alert = RDAlertView("notification", message:"message", completion:nil, cancelButtonTitle:"Cancel", otherButtonTitles:nil) alert.show()
Caveat: written without an IDE, careful of syntax errors / typos