If you want to create an iPhone application to search your library’s online catalog (etc), taking a look at the DCPL’s solution wouldn’t be a bad place to start. The code is available under a Creative Commons Attribution-Noncommercial-Share Alike license and you can download it at the DCPL Labs website.