(If you have no idea what "Markdown" and "Swift" are, you can just stop reading now.)
Note: At WWDC 2015, Apple announced Swift 2, which includes changes and a new feature called "protocol extensions" that render much of the code below either irrelevant or incorrect. This article applies to Swift 1.x.
As an experiment in using Apple's new Swift programming language, I whipped up a simple tip-calculator app for iOS 8.
Yes, the world really needs Yet Another Tip Calculator, and it also really needs Yet Another Swift App Example.
In addition to using Swift, the app also uses an embedded …
iOS's UIColor class makes it pretty easy to specify a color using red, green, blue (RGB) and alpha components:
// set pale yellow color label.textColor = [UIColor colorWithRed:1.0 green:1.0 blue:0.5 alpha:1.0];
However, as with many Cocoa API's, it's pretty verbose. Web developers would …
As an iOS software developer, I am often asked whether "we" (a team I'm working with, or someone I'm advising) should avoid using Objective-C and instead use a higher-level or easier-to-learn programming language. In general, my answer is "No". The rest of this post explains why.
A bit …
Mac OS X provides a pretty nice data-binding technology for developers, called Cocoa bindings. Unfortunately, the Cocoa bindings mechanism is not available to iOS developers, so iOS developers have to spend a lot of time writing code to keep user-interface elements and data in sync.
However, while Cocoa Bindings is …
Page 1 / 2 »