Palette is a project mainly written in ..., it's free.
This is a tutorial sample file from my blog.
This is palette sample files.
the tutorial http://ipdevelop.blogspot.com/2009/08/delphi-iphone.html