By adamwulf on October 26, 2009
By Matt Long on October 21, 2009
Our Core Animation book should be available by the end of the year. Go ahead and pre-order it now at Amazon if you would like . When we started writing for Addison-Wesley back in September of 2008, I had no idea how long to expect it to take to finish a technical book as this was my first. One thing I discovered though, is that it is when you are about ready to go to production you start to realize all of the things that you probably should have added to the book, but didn’t think of in time. This blog post will cover one such item as a way to make up for not thinking of it in time. I may include this in a second edition if there is one, but consider this one a freebie.
By adamwulf on October 21, 2009
I'm going to copy/paste my response to the same question elsewhere:
There isn't a simple class method to do this, but there is a function that you can use to get the desired results: CGImageCreateWithImageInRect(CGImageRef, CGRect) will help you out.
By Shaun Harrison on October 19, 2009
HTML is great, you want to set an image and you do <img src="http://example.com/image.jpg" />. It does everything else for you, it caches, it even loads in the background. This is something that is taken completely for granted until you actually have to do it yourself.
By adamwulf on October 16, 2009
replicate the trash animation on the iphone
By adamwulf on October 16, 2009
I'm looking to perform a perspective transform on a UIView (such as seen in coverflow). you'll need to work with the UIView's layer, using a CATransform3D to perform the layer's rotation.
By azeem on October 13, 2009
A Brief Overview:
A few months after the launch of the App Store, developers began reporting unexplained spikes in their new user numbers, spikes that were completely irreconcilable with iTunes Connect reporting on new downloads. After investigating, it unfortunately became clear that this wasn’t an error in our reporting, but instead was due to application piracy.
By adamwulf on October 1, 2009
ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier. It is written in Objective-C and works in both Mac OS X and iPhone applications.
It is suitable performing basic HTTP requests and interacting with REST-based services (GET / POST / PUT / DELETE). The included ASIFormDataRequest subclass makes it easy to submit POST data and files using multipart/form-data.
By Matt Long on September 25, 2009
At first glance setting a height dynamically for table view cells seems a little daunting and the first most obvious answers that come to mind are not necessarily correct. In this post I will show you how to set your table view cell heights dynamically based upon the text content without subclassing UITableViewCell. You can subclass it, however, doing so does not make the code much cleaner as setting the height is done in your delegate for the table view itself rather than the cell anyhow. Read on to see what you need to know to make dynamic cell height sizing a breeze.
There are probably numerous reasons why you might want dynamic heights for your table view cells, but the one I’ve run into most is the need to resize because I am displaying lists of text objects with varying lengths. When the text is short, it might fit in the normal cell label, however, if the text gets longer, you will want to resize the cell so that you can display the complete content. I’ve distilled the process of resizing table cells to a few rules of thumb. Here they are: