Category Archives for iOS

Indexed Table Views In Swift

Let’s start creating a new project in Xcode. We will start with Single View Application Template. In Xcode go File->New-Project in the menu and choose a Single View Application template.   Fill in Product Name. Then choose where your Xcode project will be stored. Now in ViewController.swift class change base class from UIViewController to UITableViewController. […]

Read More...

Creating Grouped Table Views In Swift

Let’s start creating new project in Xcode. We well start with Single View Application Template. In Xcode go File->New-Project in menu and choose Single View Application template. Fill in Product Name. Then choose where your Xcode project will be stored. Now in ViewController.swift class change base class from UIViewController to UITableViewController. In Main.storyboard remove existing […]

Read More...

UIAlertController in iOS 8

If you’ve developed for iOS in the past using Objective – C, you’ll remember creating alert views and action sheets using the UIAlertView and UIActionSheet classes. In iOS 8, these classes have been deprecated in favor of the new UIAlertController class. In this blog, we’ll take a look at how to present both alerts and action sheets with UIAlertController.

Read More...

Optionals in Swift

Before we get too far along in this existential ramble, perhaps we should answer the question of the day: “If nil is nothing at all, what is nothing at all good for?”

Read More...

A Hello App In Swift

It is traditional to begin learning a new programming language by writing a “Hello, World” program. Since Swift is Apple’s new programming language for apps, I thought it only proper to write “Hello, Swift.” So here we go!

Read More...

Text To Speech In iPhone

With the vast number of features added to iOS 7 last fall, it is easy to overlook a few of them. In this blog, I’ll show you how to use the speech synthesizer to convert text to audible speech.

Read More...

Creating Controls In Code

Sometimes it is useful to be able to create and add controls to views in code, without using Interface Builder. In this blog post, we’ll learn how to add a button and a label to our view. Other controls will follow the same general pattern. So, let’s get started!

Read More...

Grand Central Dispatch for iPhone

In the previous two blog posts, we’ve looked at implementing threaded code using NSThread and NSOperation. In this post, we’ll take a look at threading using Grand Central Dispatch.

Read More...

Updating A Progress Bar (iPhone)

The UIProgressView control is a handy way to allow users to see the progress of a long – running task, but it is not immediately obvious to many new iOS developers how to update the control without blocking on the main thread. In this blog, we’ll show a simple way to accomplish this. The code […]

Read More...

Simple Threading In iPhone

In iPhone / iPad development, executing code on a thread other than the main UI thread is usually done to keep a long running process from blocking or stalling the user interface. In iOS, there are a couple of ways to perform tasks on new threads. In this blog, we take a look at the simplest of these, NSThread.

Read More...