Mixing-Orientations is a project mainly written in OBJECTIVE-C and C++, it's free.
Sample iPhone Application that shows how to mix device orientations
This is just a demo app to show how to mix interface orientations orientations in iPhone