Tag Archives: objective-c

iPhone Distributed Computing Fallacy #4: the network is secure

Reviewing the 8 classic “fallacies of distributed computing” and how we can avoid them when writing iOS applications. The fallacies of distributed computing The network is reliable. Latency is zero. Bandwidth is infinite. The network is secure. Topology doesn’t change. … Continue reading

Posted in Mobile | Tagged , , , | Leave a comment

iPhone Distributed Computing Fallacy #3: bandwidth is infinite

Reviewing the 8 classic “fallacies of distributed computing” and how we can avoid them when writing iOS applications. The fallacies of distributed computing The network is reliable. Latency is zero. Bandwidth is infinite. The network is secure. Topology doesn’t change. … Continue reading

Posted in Mobile | Tagged , , , | 1 Comment

iPhone Distributed Computing Fallacy #2: latency is zero

Reviewing the 8 classic “fallacies of distributed computing” and how we can avoid them when writing iOS applications. The fallacies of distributed computing The network is reliable. Latency is zero. Bandwidth is infinite. The network is secure. Topology doesn’t change. … Continue reading

Posted in Mobile | Tagged , , , | Leave a comment

iPhone Distributed Computing Fallacy #1: the network is reliable

As iPhone and web developers we have a number of useful abstractions available for working with network requests. Unfortunately none of them can actually spare us from needing to consider the realities of an unreliable network, especially when working with … Continue reading

Posted in Mobile | Tagged , , , | 4 Comments

UIView Frames and Bounds

All UIViews have frame and bounds properties which define their dimensions. The similarity of these properties can cause some confusion when attempting to determine which property to use to calculate view sizes or reposition views. The frame of a view … Continue reading

Posted in Mobile | Tagged , | 4 Comments

Testing iPhone View Controllers

I have been writing tests around my iPhone apps’ view controllers in order to follow the same TDD practices we use in other environments. Writing tests first has changed the way I structure my code in a couple of ways … Continue reading

Posted in Mobile, Process | Tagged , , | 24 Comments

Multiple Environments in an iPhone Project

I’ve been following a Rails convention and defining multiple environments for my iPhone projects. This allows me to quickly switch application wide settings when running a test, development, or production version of the app.

Posted in Mobile | Tagged , , | 2 Comments

Code Formatting in Xcode

Using Xcode 4? Take a look at Code Formatting in Xcode 4 Working in Xcode I almost forgot how much I like IntelliJ’s code formatting tools. Luckily for me Mike Smith recently pointed out that UniversalIndentGUI can be used to setup … Continue reading

Posted in Mobile | Tagged , , | 12 Comments

Resizing views around the keyboard

Most of my iPhone apps need to accept keyboard input somewhere and that means I need to reposition my UI elements such that the keyboard does not hide the field the user is typing in. The iPhone Application Programming Guide … Continue reading

Posted in Mobile | Tagged , | 2 Comments

Loading UITableViewCells from a nib file

While working on iPhone applications I have found it useful to load as much of the UI layout and styling from nib files as possible. As a result I often want to load the cells for a table view from … Continue reading

Posted in Mobile | Tagged , | 3 Comments