Show Menu

Looking to hire an app developer?

Submit your 30 day Job Listing for FREE

In Swift and iOS 8 SDK you can present an alert view as shown in the code below : var alert = UIAlertController(title: “Alert Title", message: "Message", preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil)) self.presentViewController(alert, animated: true, completion: nil) You can also add destructive and cancel actions by setting the style property to Destructive and Cancel respectively.


How do you store data in a program? Or, How do you store data in Swift for your iOS Application. Well, you store them in variables, but you already knew that didn’t you? Here is my first post about Swift variables, where we discuss their Swift Variable declaration and Swift Variable definition. In particular, we will mostly be discussing the concept of Swift variables and Swift constants.


Have you wanted to send an e-mail from your app and pre-populate the fields like the recipient, subject, or body text? In this How to send emails from your ios application tutorial I will show you how. Thankfully Apple made it pretty easy with MFMailComposeViewController. There is a bit of setup, but most of its actual implementation is pretty easy.


This awesome resource was started in November 2013. The initial goal was to provide guidelines to write the most clean Objective-C code possible: there are too many guidelines out there and all of them are debatable. We didn’t aim introducing hard rules but, instead, a way for writing code to be more uniform as possible across different developers. With time the scope moved to explain how to design and architecture good code.