iPhone (Xcode) Project Structure

(iPhone uses Model View Controller and Delegate patterns in its structure as seen here)

  • Classes =directory to contain any classes generated upon creation of project or any other classes you create on your own
    • will contain AppNameDelegate.h, AppNameDelgate.m
    • will contain AppNameViewController.h, AppNameViewController.m
  • Other Sources = again can contain code that is generated or you create.
    • will contian main.m = main function of application
  • Resources
    • Things like images and sounds that are used by application at run time
    • Will contain Views (these are your apps interfaces) in the naming conventions like AppNameViewController.xib or MySecondViewController.xib, etc.
    • Will contain AppName-Info.plist which contains name vlaue pairings giving icons, whether app needs persistent Wi-Fi connection, default language of applciation and much more. Lists if you want different images for different devices (icon.png = default, icon~ipad.png = for ipad, icon~iphone.png = for iphone). Note can bring up this list by
  • Frameworks
    • There are various frameworks offered by apple as well as third-party frameworks (think of these as packages/libraries) that can be used by applications. This is where you list them.
    • Applications with user interfaces will have listed here CoreGraphis.framework, Foundation.framework, UIKit.framework.
  • Products
    • This contains the applicaton itself

 

xCode project structure

© Lynne Grewe