iOS8-Blog

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

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

Quick Tip: Scrolling animation – UIScrollView

So I wanted an animated UIScrollView which iterated around a collection of UIViews that had been programmatically added to my UIScrollView.

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

Base64 Decoding in iOS 7 Objective-C and iOS8 Swift

Here is a very quick tip that about Base64 decoding for iOS Applications and for Objective-C iOS7+, incl iOS8 Swift.

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

Getting started with NSNotificationCenter

Have you ever wanted to alert other classes of your app of some event from another one?

Read Full Article

Asynchronous Message Passing With Actors in Objective-C

Although we are all in love with Objective-C, the power of a language itself is given by its inner features. Languages like Ada have a built-in concurrency model, while Objective-C needs external libraries (let’s say libdispatch) to try to achieve the same power of expression found in richer languages. The same happened for the implementation of the Actor Model. The standout language for the feature of asynchronous message passing using the actor model is Erlang. From Wikipedia: The actor model ...

Read Full Article

1 2 3 18
Close

Follow iOS-Blog on twitter

Follow @iOS_Blog