Testios4 is a project mainly written in OBJECTIVE-C and C, it's free.
sample code for "beginning iPhone 4 development"
All code is written when I read the book . Just for practice, and I have added some comments on the code.