Autosize is a project mainly written in Objective-C, it's free.
iOS Autosizing and Autorotation demo for portrait and landscape orientations.