I suppose it’s about time I wrote about Little Bites of Cocoa. I’ve been having a blast with it. Here’s a little about how it came to be: The idea was simple. Daily bite-sized (get it?) tips and tricks to give readers a brief overview or explanation of a particular concept, technique, or tool. Read more of Little Bites of Cocoa 🍫 →
ComponentKit takes a functional, declarative approach to building UI. It lets you focus on what your UI should look like, not the steps necessary to build it. It emphasizes a one-way data flow from immutable models to immutable components that describe how views should be configured. Read more of ComponentKit →
Apple: This document gets you started creating a CloudKit app that stores structured app and user data in iCloud. Using CloudKit, instances of your app—launched by different users on different devices—have access to the records stored in the app’s database. Read more of CloudKit Quick Start →
Github: This is an attempt to encourage patterns that accomplish the following goals (in rough priority order): Increased rigor, and decreased likelihood of programmer error Increased clarity of intent Reduced verbosity Fewer debates about aesthetics Some fantastic guidance in here. Read more of Github's Swift Style Guide →
The guys at Github have been rocking some awesome Objective-C open-source stuff lately, and their latest release, Mantle, does not disappoint. Mantle makes it easy to write a simple model layer for your Cocoa or Cocoa Touch application. Read more of Mantle: Objective-C Model Objects That Don't Suck! →
Another amazing open-source project from @mattt and the AFNetworking guys: AFIncrementalStore. AFIncrementalStore is an NSIncrementalStore subclass that uses AFNetworking to automatically request resources as properties and relationships are needed. Read more of CoreData + AFNetworking = AFIncrementalStore →
Filling out forms on a phone can really suck. Heck, even on the iPad’s awesome screen, I often make plenty of mistakes while typing in information. When a user first downloads your iOS app, it’s quite common for them to need to fill out some sort of “sign up” or some other kind of form. Read more of Delight Your Users By Pre-filling Forms With JBDeviceOwner →
I can’t tell you how long I’ve been waiting for this. As Joris points out, it appears that Apple has committed the necessary changes to the LLVM project to allow LLVM to fully support the latest Objective-C language features. Read more of Literal Syntax for NSArray, NSDictionary & NSNumber →
As I’m sure many readers have heard, there has been some public outcry lately on the subject of iOS apps accessing the Address Book contacts of a their users and then sending the whole lot of them off to their servers, to accomplish their “friend matching” features. Read more of Protect Your Users' Privacy With DTSHashedContacts →
Tom Harrington brings us another insanely valuable little bit of code that does some simple, yet awesome things with a parsed NSDictionary of JSON content: Provide a safe, generic alternative to Cocoa’s -setValuesForKeysWithDictionary: for use with NSManagedObject and its subclasses Handle cases… Read more of Parse JSON Directly into NSManagedObjects →
Fantastic writeup from Fraser Speirs about iOS’s multitasking capabilities and behavior. He goes into great detail about the ins and outs of things and covers all the different scenarios really well. Read more of Misconceptions About iOS Multitasking →
Oh man, I wish I had found Tim Oliver‘s writeup about this sooner (includes diagrams and sample code). I just wrote all of this code myself, and had to do all of my own research. Serves me right for not properly Googling. Read more of Creating the iOS 5 UITableView Bevel Effect →
I’m absolutely in love with the technique David Hamrick lays out in this post. Instead of subclassing UIView every time we need to draw something what if we were to have one subclass that allowed us to pass in a block that performed the drawing code. Read more of Using Blocks for Drawing →
Here’s a neat little write up (sample code included) from Florian Mielke of how to replicate Path 2.0‘s neat behavior of “attaching” a timestamp indicator that follows iOS’s built-in scroll indicator as you scroll. Read more of Attaching a UIView to the UIScrollViewIndicator →
Hiedi Utley has completely brought the awesome with a way to use desktop Safari’s WebKit inspector to debug iOS UIWebView objects: Wow! What a day! Read more of Remote Debugging UIWebView →
Found this article that Drew McCormack put together while searching around for some CoreAnimation techniques this afternoon. It basically covers the process of conceptualizing, imagining, wire framing, designing, implemented, performance tuning and testing a really awesome CoreAnimation interface. Read more of Scrapbook of an Advanced Core Animation View →
From the uber-talented Jeff Broderick comes this beautiful and awesome collection of iOS homescreen shortcuts to the major parts of iOS’s settings app. Finally, you can have beautiful, quick ways to get to the parts of Settings.app you use the most. Read more of iOS Settings Shortcuts →
I see this type of stuff a lot in other people’s code: Objective-C It’s certainly not wrong, but you are incurring a huge performance and memory usage hit just to get the width and height of an image. Enter the CGImageSource... methods. Read more of Accessing Image Properties Without Loading the Image →
Been wanting something like this for a long time. GAJavaScript is a Cocoa Touch library that makes working with JavaScript from inside native code much more tolerable, maybe even fun. JavaScript is accessed from Cocoa Touch using UIWebView. Read more of GAJavaScript →
One of the most interesting additions to iOS 5 was iCloud storage which makes it easy to sync data between apps running on different iOS and OS X devices. Effectively you can store key application data in the cloud and have it propagate to all instances of the app wherever they are running. Read more of Syncing Your App's Preferences with iCloud →
I’ve just released a new little helper library for iOS development. It’s called JMWhenTapped. It’s is a simple little syntactical-sugar addition to all UIView objects, as well as any class that inherits from UIView. Read more of Save Time and Code With JMWhenTapped →
Today I’m open-sourcing a small project I use to do remote image downloading and caching on iOS called JMImageCache. It uses an NSCache based remote-image caching mechanism that can be easily integrated into any project. Read more of Introducing: JMImageCache →
Recently, I’ve been struggling with NSFetchedResultsController. I was trying to get it to section my objects by a “pretty date”, but still have them sorted properly. Read more of Custom Sections Title Selectors →