ImageGallery is a project mainly written in OBJECTIVE-C and C, it's free.
Sample project with image gallery