by Bob McCune on September 8, 2011
I occasionally come across the need to grab the contents of a view as an image. This is often the result of needing to perform some non-stock, animated transition between views, but there are a variety of reasons why this might be useful. Thanks to the Core Animation framework’s CALayer class, this is easy to [...]
by Bob McCune on September 6, 2011
My Core Animation Demos projects was previously available on Github under my personal account, but I have since moved it to my business account. The new location of of the CA demos is: https://github.com/tapharmonic/Core-Animation-Demos I haven’t made any major changes to code at this point, however, I did start an ARC branch to house my [...]
by Bob McCune on April 8, 2011
The Factory pattern is a frequently used creational pattern to help abstract the creation of an object from its clients. Although there are a few specializations of this pattern I’ll focus on the most commonly used approach and then look at how we can leverage the Objective-C Runtime to make this solution more robust. Let’s [...]
by Bob McCune on March 13, 2011
This past week I gave a presentation on Core Animation to the Minnesota CocoaHeads user group. Core Animation is a truly amazing framework and is really the magic ingredient in the iOS user experience. Understanding how to effectively use it can allow you to add new levels of realism and interactivity to your apps. As [...]
by Bob McCune on March 8, 2011
A common need in an iOS app is to tile a background image on a UIView. It’s trivial to implement, but not particularly obvious if you’re new to the platform. The solution is to set the view’s backgroundColor property to a UIColor instance created from your pattern image. For instance, the following code will create [...]
by Bob McCune on January 31, 2011
Cocoa has long defined the IBAction and IBOutlet keywords. These keywords provide metadata hints to Interface Builder providing it some understanding of your underlying code so you can graphically wire instance variables and properties and set target-action behaviors. For instance, whenever you need a pointer to NIB-defined object you would create a property defined as: [...]
by Bob McCune on April 8, 2010
Thanks to everyone who turned out for the iPhone presentation Chris Bartling and I gave at last night’s Jam Session! We had a great time talking about a fun topic. I hope you enjoyed it. There were some questions about Apple’s approval process. I mentioned that I just submitted an app this past Saturday and [...]