bits about life, coding and stuff
It’s convenient to use git’s commit hash as a versioning tool. Here’s an easy way to integrate this with Xcode. Bonus: This one doesn’t actually change the Info.plist file, so after a compile there are no dirty files git would want to check in. The first method works for regular apps. At the end I show a [...]
If you call an optional delegate protocol, and it grows larger and larger, you find yourself write variations of this ugly block all over your code: if ([self.delegate respondsToSelector:@selector(pdfViewController:didDisplayDocument:)]) { [self.delegate pdfViewController:self didDisplayDocument:self.document]; } I consider this code smell, and it doesn’t get easier once you decide to change the delegate. While developing PSPDFKit (a [...]
Chameleon is a clean-room implementation of UIKit. So you can just compile your iOS App to the mac. And boy are there some iOS apps out there that I want on my mac (even better: on the dashboard!) Currently it’s about 70% complete, and simple projects already compile. And the pull requests are already underway. [...]
As a christmas present to everyone, i’m opening my toolbox and open source my iOS App Template. JSON-Parsing, AutoUpdating, CrashReporter+Sender, Statistics, custom Logging, Localization… all those little things already set up, ready for you to make awesome stuff! Running it is rather unspectacular, all you see is a shadowed UITableView. It’s the libraries that are awesome; [...]
For my latest iOS application, a series of really, really strange crashes bugged me. Always crashing somewhere else (I use CrashReporterDemo to get the crashes) … and never when I was using the app, but with my testers. Stacktrace crashes seemed random, most times in Apple’s classes. And ALWAYS deep within malloc. Ahh! First pointer [...]