February 2011
4 posts
1 tag
iOS: Static Libraries and Objective-C Categories
iOS and static libraries are a pretty painless experience with XCode, there was only one thing I couldn’t get to run at first. If you’re using Objective-C categories inside the static library, iOS is not loading them at runtime and you typically get an error message like: Unrecognized selector sent to class 0x... There’s an easy fix though, just add -ObjC and -all_load to the...
Feb 28th
1 tag
Retina and iOS SDK Part II: UIGraphicsBegin...
Apple’s iOS SDK is handling Retina displays (with its better resolution) pretty smoothly. There almost no case where you have to think about the higher resolution assets, it almost seems like the system is handling it pretty magically. But there are a few sticking points. While the first part was about a iOS 4.0 bug in UIImage, this second part is all about UIGraphicsBeginImageContext and...
Feb 21st
1 tag
Retina and iOS SDK Part I: UIImage
Apple’s iOS SDK is handling Retina displays (with its better resolution) pretty smoothly. There almost no case where you have to think about the higher resolution assets, it almost seems like the system is handling it pretty magically. But there are a few sticking points. This first part of the Retina and iOS SDK series is all about a nasty bug in iOS 4.0.x with UIImage and it’s...
Feb 14th
1 tag
Git Remote Branches
Creating local branches in Git is relatively easy, but since I’m working on multiple machines I need to have the branches on the remote repository. The commands for working with remote branches aren’t very self-explanatory, here’s a typical workflow: Create remote branch Create local branch which tracks the remote one Commit code changes and push to the remote branch Merge...
Feb 7th