Greg Holsclaw: Views, ImageCache and an iPhone app

When developing a mobile app, be it for the iPhone, an Andriod phone or a Blackberry, having dynamic data sprinkled in the app is important. DogParkUSA.com has recently sponsored the Dog Park Finder iPhone app and they wanted a thumbnail photo in each dog park listing.

One key is that if a park gets its first photo, or a better photo, the editors wanted to be able to promote the photos to the top of the photo page, and to have it show up as the thumbnail in the iPhone app. To do this without updating the app, we used a static URL that points to a View, which displays a Imagecached image.

Imagecache was used to exactly size photos to fit in the frame used in the app, while Views allows us to have a static URL, even though the photo displayed can be changed by the editors (by using the Sticky flag). This flexibility is key to pushing the photos they select into the app without an app update.

read more

آخر المشاركات

 

أوسمة الموقع