Autorotation and Autosizing. Chapter 5 of iOS5 Book.