Code for custom layouts example in Collection View Programming Guide for iOS