Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

17. Connecting to the Address Book > One More Thing: Adding Random Contact Art

One More Thing: Adding Random Contact Art

The Monster ID project consists of a collection of body part art that can be compiled together to form random pictures. It was developed by Andreas Gohr, and was inspired by a Web post by Don Park and the combinatoric critters. Built up by adding predrawn arms, legs, a body, and so forth, the resulting composite image produces a full creature.

The randomImage method in Recipe 17-7 builds a monster image from its components. This art can be assigned directly to an Address Book contact or can be used as the seed for a new contact using the unknown person controller. Either way, you can use an ABContact instance and assign an image using its image property. If you’re not using an AddressBookUI controller, don’t forget to save the Address Book after updating a record’s image.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint