Rapture in Venice

:: Mobile Design and Development Shop specializing in iPhone, iPad, and Android

iPhone

How to Memorize Block Syntax

Since block syntax came out alongside iOS 4, I’ve struggled to memorize it. Sure, blocks without return types or parameters = ^{ return @”super easy to recall”;}, but once you factor in arguments and want to accept a block argument in a method, thingsBecome:(CGFloat (^)(NSInteger way, id more, CGRect complex))dontYaThink? It’s no wonder that Fucking [...]

, ,

Don’t Write a Class, Write a Category!

As an iPhone freelancer, I develop a lot of iOS apps. A lot. And one of the most important things to my business is that I leverage as much of my past work as possible when it comes to new projects. I have several strategies, but today I wanted to share one of my favorites: [...]

, , ,

My Concise Introduction to CocoaPods

CocoaPods is now the industry standard for managing third-party frameworks and dependencies for iOS. There’s such a demand to make libraries work with CocoaPods that, even in its very early days, I actually received 5 requests to add a Podfile and tag before I even knew what CocoaPods was! Nowadays, I love it, and I’d [...]

, ,

Asset Catalogs: Love Em or Leave Em?

I’ve never been to a WWDC, but each year I get positively gitty when the session videos become available. And what do I get the most excited about? No, not Passbook, iCloud, or the big-ticket stuff. No, I like the small stuff. The simple stuff. The stuff that improves my day-to-day and fixes things I constantly find annoying.

This year, that something was Asset Catalogs.

Why Asset Catalogs? Well, simple. Ever since we got the iPhone 4 in all it’s retina glory, I’ve always found it frustrating to manage keeping TWO versions of every graphic. (The original and it’s double-resolution version.) There’s so much monotony in it:

  1. I need to keep all the files paired together in Xcode, in the right order. (Partly due to OCD, partly due to basic organization.)
  2. I need to make sure they’re both named EXACTLY the same.
  3. If I want to rename an image, I GOTTA DO IT TWICE.
  4. I hate how much space it takes up on the Project Navigator when the folders inevitably all expand.
  5. I need to make sure the @2x is exactly twice the dimensions of the original. (Designers always flub this.)

Sadly, Asset Catalogs don’t fix #5, but they do help us a ton with the other four, and hey, that ain’t bad! Still, not all is rosy in a catalogued world, so let’s take a look, shall we?

, ,

Tutorial: Using RaptureXML Like A Pro!

In a world with evolving data formats such as YAML and JSON, it’s remarkable how much we still use XML, but what’s even more remarkable is just how bad the XML parser offerings are for iOS. Whether you use the native NSXMLParser stuff or any of the many third-party frameworks, you’re forced to write a [...]

, ,

Previous Posts