Mon, Sep 1
iPhone 6 Mobile Wallet Coming Sept 12th?

This is intriguing:

Apple has reached an agreement with American Express to work together on its new iPhone payments system

However, as expected, this is speculation. To finish the thought…

…according to sources familiar with the talks.

Which would imply iPhone 6 will have NFC technology.

read more »

Sponsor: Appsee Mobile App Analytics

Sponsor

Appsee

Appsee is an advanced visual mobile analytics platform that enables app developers and publishers to measure, understand and improve the user experience in their mobile app.

Traditional mobile analytics don’t reveal the full story, emphasizing numbers instead of reasons. Appsee enables app developers and publishers to put themselves in their users’ shoes and visually understand exactly how users interact with their app.

App owners leverage Appsee’s user recordings, touch heatmaps and real-time in-app analytics to optimize their apps and increase engagement, conversions and in-app monetization.

Appsee SDK integration takes less than 1 minute. Try Appsee for free here.

Many thanks to Appsee for sponsoring iOSDeveloperTips.com.

Sun, Aug 31
Colorize Git Terminal Commands

Add the following to your ~/.gitconfig file to show the git command output in color when working in a terminal. This is really handy, give it a go.

[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
Fri, Aug 29
Creating a Custom Control in Swift

Mikael Konutgan of the Ray Wenderlich team recently wrote about creating a custom control in Swift. The completed control will look as follows:

Swift custom control.

If you are looking to build a control that has a basic target-action pattern, read on.

UIControl implements the target-action pattern, which is a mechanism for notifying subscribers of changes. UIControl also has a few properties that relate to control state. You’ll be using the target-action pattern in this custom control, so UIControl will serve as a great starting point.

Apple Case Study on Optionals in Swift

Apple Swift Blog:

This post explores how optionals help preserve strong type safety within Swift. We’re going to create a Swift version of an Objective-C API.

There is coverage of several concepts: returning an array of optionals from a method, using the map method on an array and a few notes about return values of Optional(nil).

Thu, Aug 28
Converting Values to Enumerations in Swift

From the #swift-lang IRC channel: “Is there any way to go backwards in an enum? I want to look up an enum based on a value.”

Erica Sadun:

The RawRepresentable protocol consists of two underlying functions: toRaw() and fromRaw(). These enable you to transform enumerations to and from underlying data states.

Swift’s Answer to #pragma mark, FIXME and TODO

While coding in Objective-C, #pragma mark is very handy for code organization in the Jump Bar. For example:

#pragma mark – Initialization 
code here...
 
#pragma mark – Table Management
more code here...

The Jump Bar would show the following, where code sections are clearly marked:

Swift #pragma alternative // MARK

#pragma mark Alternative for Swift

read more »