UIAlertView-Blocks: block based UIAlertView and UIActionSheet
UIAlertView-Blocks: a block based approach to UIAlertView and UIActionSheet
Git stash to store frequently used edits
We work on a couple of projects that require specific changes to test a particular configuration, for example to test against a local server. We generally put this kind of configuration into a plist file and create a target that builds using that plist. Sometimes, however, that’s not convenient–for example, there may be several different […]
Symbolicating (mostly) fixed in Xcode 4.1
I previously posted why Xcode 4’s symbolication is broken, along with a patched script that fixes it. As of Xcode 4.1, Apple has fixed the problems in the symbolicatecrash script, though I’ve found that it still often does not symbolicate correctly. Here are the most common problems (and solutions) I’ve come across:
Verbally 2.0 is live
After a few months in the app store and lots of great feedback, we’re excited to announce that Verbally 2.0 is available, including an in-app purchase to unlock Verbally Premium. Designed for people who use Verbally as an everyday communication aid, Verbally Premium includes several useful improvements.
Using DiffMerge as your Git visual merge and diff tool
Our favorite (and free) visual diff and merge tool for OS X (as well as Linux and Windows) is DiffMerge. It makes resolving nasty Git branch conflicts a snap (relatively speaking). Here’s how to install it and configure it with Git on OS X: Download the DiffMerge OS X installer. Be sure to download the […]
Empty or incorrect URL with webViewDidStartLoad
If you’re using a UIWebView in your iPhone or iPad app and you want to execute some code when a page starts loading you’ll likely turn to the webViewDidStartLoad: method in UIWebViewDelegate. However, you may have surprisingly unpredictable results. For example, the following code won’t work as expected: – (void)webViewDidStartLoad:(UIWebView *)webView { if […]
Using fractional pixels to position UIImageViews
When centering content vertically and/or horizontally in a view, I often use a simple formula to calculate the x/y values for the content’s frame: image.frame.origin.y = (container.frame.size.height – image.frame.size.height)/2 The problem with using this formula for UIImageViews is that, if one or more of the dimensions is an odd value, the result will be […]
Adding Unit Tests to an existing iOS project with Xcode 4
When you build a new iPhone or iPad app from scratch, you can generate a new project with tests using Xcode’s project templates, and the test dependency is set up correctly. However, if you add a unit test target to an existing iOS project, there are some manual steps required to set up the target […]
MBProgressHUD: an iOS activity indicator that rocks
MBProgressHUD: an enhanced iOS activity indicator that rocks
Speedlimit: simulate Edge and 3G speeds for mobile development
Speedlimit: simulate Edge and 3G speeds for mobile development