iOS8-Blog

Objective-C / Swift Tutorials, Resources and Competitions for the iPhone Developer

Developing iOS8 Apps Using Swift – Part 1- Hello World

iOS Development Swift Tutorial 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

Quick tip: Implementing UIAlertView in Swift

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

How to: Detect screenshots in Objective-C and Swift like SnapChat

Detect screenshots like snapchat logo 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

Computed Properties in Swift

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

Swift Variables and Constants

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

Quick tip: dispatch_once singleton model in Swift

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

How to send emails in your iOS Application using: MFMailComposeViewController

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

1 2 3 22
Close

Follow iOS-Blog on twitter

Follow @iOS_Blog