How an App Runs
When you create an Xcode project and select a template, you get a considerable head start on the process of coding your very own iPad app.
In that tutorial, I choose the View-based Application template for the DeepThoughts app, and as a result, I have a working app that offers a view.
A framework offers common code providing generic functionality. iOS provides a set of frameworks for incorporating technologies, services, and features into your apps. The framework is designed to easily integrate your code; with the framework in place, all you need to do is add the specific functionality that you want in the app - the content as well as the controls and views that enable the user to access and use that content - to the frameworks.