Categories
|
Test Your Knowledge: Application Delegate for the First iPhone Application Explained
Summary
This is a test on the article that explains the Application Delegate of an iPhone application. This article discusses the standard application delegate header and implementation files generated for a navigation based application. Also goes through the methods that are generally implemented from the UIApplicationDelegate protocol.
|
Table of Contents
Creation of the first iPhone application The source files The Header File Code Listing 1. The Application Delegate Declaration What is an application delegate? Figure 1. The variable window of an iPhone application. Here, application object is of type UIApplication; and it has a delegate associated with it (called FirstAppAppDelegate). The Signature of Application Delegate Code Listing 2. The signature of application delegate. The Implementation File Code Listing 3. Implementation file for the application delegate The Methods applicationDidFinishLaunching Figure 2. The call stack leading to applicationDidFinishLaunching. The code in this method gets executed at the beginning of the application. Code Listing 4. The UIApplicationDelegate protocol Code Listing 5. The delegate declaration in UIApplication Code Listing 6. The applicationDidFinishLaunching method applicationWillTerminate Code Listing 7. The applicationWillTerminate method Figure 3. The callstack leading up to the termination of application dealloc Code Listing 8. The dealloc method
|
Review Answers for Questions in this Test
|
|
|
Bookmark and Share This
|
|
More Articles With Similar Tags
|
This is a test on the article that gives a quick overview of the development tools installed with iPhone SDK. These tools include Xcode, Interface Builder, Instruments, and iPhone Simulator. In the article, Dash Code, which is used to build web applications for iPhone is also introduced. GDB, the open source debugger, is discussed there as well.
|
This article discusses various parts of the Project window inside an Xcode project. It also gives a quick overview of the Groups and Files navigation window. The Run menu, the default toolbar, and the built-in source editor are also discussed.
|
This is a test on the article that discusses various parts of the Project window inside an Xcode project. It also gives a quick overview of the Groups and Files navigation window. The Run menu, the default toolbar, and the built-in source editor are also discussed.
|
This article explains the user interface files of an iPhone application. Explains the contents of the .xib files, which store the user interface. Goes through the various windows (Document Window, User Interface Window, Inspector Window, Library Window, Connections Panel) of the Interface Builder. The example used is a simple navigation-based iPhone application.
|
This is a test on the article that explains the user interface files of an iPhone application. It explains the contents of the .xib files, which store the user interface. Goes through the various windows (Document Window, User Interface Window, Inspector Window, Library Window, Connections Panel) of the Interface Builder. The example used is a simple navigation-based iPhone application.
|
|
|
|
|