Note that you should have read all of the appropriate documentation before starting coding anything. This includes, but is not limited to, the iPhone Application Programming Guide, the iPhone Development Guide and the iPhone HIG. Had you done so you would have known the answer to this and almost all other basic questions.