Here you will find the tutorial "Drawing to the screen":
http://www.ipodtouchfans.com/forums/showthread.php?t=132024You create iPhone Window-based project:
In Xcode, in the File menu you select "New Project...". On the left panel you choose "Application" under "iPhone OS". On the right panel you choose "Window-based application". It is shown on the attached screenshot. Press "Choose" button. Set a project name and press "Save".
Now you build your project and check that it works - you need to build it for the simulator. If it runs, you can switch to the tutorial mentioned above.