Apple recently announced a pretty major change to the way iOS apps have been developed in the past, an entirely different programming language called Swift which replaces Objective-C. In my efforts to learn the new language, I’ve decided I will be posting regularly as I step through the learning process, sharing everything I find. This is the first post of many on the topic, and I hope you decide to follow along! This article is part of the create iOS8 ...
Read Full Article
In Swift and iOS 8 SDK you can present an alert view as shown in the code below : 1234var 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.
Read Full Article
So I wanted an animated UIScrollView which iterated around a collection of UIViews that had been programmatically added to my UIScrollView.
Read Full Article
Have you got the Snapchat App? Even taken a screenshot of the image because you wanted to keep it forever? Ever wondered how to do that in your own app?
Read Full Article
Continuing the discussion about , let us move on to Swift properties, which are basically Swift constants or variables used in a class, structure, or enumeration. More specifically, they are stored values for a class, structure, or enumeration, that have getter and setter methods that can be modified.
Read Full Article
Here is a very quick tip that about Base64 decoding for iOS Applications and for Objective-C iOS7+, incl iOS8 Swift.
Read Full Article
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.
Read Full Article
From my short experience with iOS8 Swift there are three approaches to implement the Singleton pattern that support lazy initialisation and thread safety.
Read Full Article
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.
Read Full Article