■XcodeInterfaceBuilder■Objective-C■Objective-C■■-CocoaObjective-CCocoaiPhoneMacOSXv10.5IntelMacintoshiPhoneSDKiPhoneSDK■“”iPhone■“”iPhone■“”iPhone■“”iPhoneOS■“Web”iPhoneOS■“”■“”iPhoneOS■“”■“”SettingsADCBugReportingURL■iPhoneiPhoneXcode■CocoaiPhone■iPhoneiPhoneiPhone■UIKitFoundation■iPhoneOSiPhone■iPhoneOSiPhone■Objective-C2.0Objective-CObjective-CiPhoneOSiPhoneUIKitUIKitUIKitiPhoneUIApplicationiPhoneiPhoneiPhoneOSHomemainUIKitUIKitUIKit1-1iPhoneUIKitUIKit“”“”1-1 iPhonemainUIApplicationMainXcodemain“”mainUIApplicationMain1-1 iPhonemain#importUIKit/UIKit.hintmain(intargc,char*argv[]){NSAutoreleasePool*pool=[[NSAutoreleasePoolalloc]init];intretVal=UIApplicationMain(argc,argv,nil,nil);[poolrelease];returnretVal;}CocoaCocoa“”UIApplicationMainmainargcargvnil,UIKitUIApplicationnilUIKitnibXcodenilUIApplicationMainUIApplicationUIKitUIApplication“”iPhone“”UIKitCocoaiPhoneUIApplicationDelegate“”UIApplicationDelegateUIApplicationDelegateNibnib(Info.plist)NSMainNibFileUIApplicationnibnibnibnibNibiPhonenibnibnibInterfaceBuildernibnibiPhone“Nib”nib“”UIApplicationMain1-2iPhoneOSUIApplication1-2 iPhoneOSUIEventUITouchUIApplication1-31-3 FoundationNSRunLoopNSRunLoopUIApplicationUIResponderUIApplicationUIWindowUIViewUIViewUIWindowUIViewUIResponderCocoa——UIControl“”“”“”UIKitMacOSXCocoaiPhone1-1 iPhone----(MVC)--Objective-C1retainreleaseautorelease0Objective-CCocoaiPhoneOSiPhoneOSiPhoneOSHomeHomeiPhoneOS5iPhoneOS“”iPhoneOS1/ApplicationRoot/ApplicationID/----“”iPhoneOSMacOSXiPhoneOSMacOSXiPhoneOSvolatilepagesnonvolatilememory“”iPhoneOSUIApplicationidleTimerDisabledYES“”iPhoneXcodeiPhone1-2iPhoneMyApp1-2 MyApp.appSettings.bundleSettings“”Icon.png57x57Home“”Icon-Settings.png29x29SettingsSettingsIcon.png“”MainWindow.nibnibnibnibnibInfo.plistNSMainNibFile“”Default.png480x320“”iTunesArtwork512x512ad-hocAppStoread-hocAppStoreiTunesAppStoreAppStoreJPEGPNGInfo.plistID“”sun.png()sun.pngen.lprojfr.lprojes.lprojISO639-1.lprojen.lprojfr.lprojes.lproj“”iPhone.lprojIcon.pngDefault.pngSettingsIcon-Settings.pngNSBundleCFBundleRefsun.png“”Objective-CNSString*imagePath=[[NSBundlemainBundle]pathForResource:@sunofType:@png];UIImage*sunImage=[[UIImagealloc]initWithContentsOfFile:imagePath];mainBundleInfo.plistXcodeiPhoneXcodeProjectEditActiveTargetTargetNameInfoPropertiesXcode1-41-4 Info“OpenInfo.plistasFile”XcodeInfo.plistXcode1-5-Info.plistControlShowRawKeys/Values1-5 Xcode1-3Info.plistXcodeXcodeControlShowRawKeys/Values1-3 Info.plistCFBundleDisplayName()CFBundleIdentifier()UTIA-Za-z0-9-.DNSAjax.comHellocom.Ajax.HelloCFBundleURLTypes(URL)URLURLhttpmailtoURLCFBundleVersion()LSRequiresIPhoneOSBooleaniPhoneOSXcodetrueNSMainNibFile(nib)nibnibXcodenibnibnib.nibUIStatusBarStyleUIApplication.hUIStatusBarStyleUIStatusBarStyleDefaultUIStatusBarHiddenBooleantruefalseUIInterfaceOrientationUIApplication.hUIInterfaceOrientationUIInterfaceOrientationPortrait“”UIPrerenderedIconBooleanfalsetrueUIRequiredDeviceCapabilitiesiTunesAppStoreiTunesAppStoreBoolean1-4iPhoneOS3.0UIRequiresPersistentWiFiBooleanWi-FiWi-Fitrue30Wi-FiWi-FifalsetrueWi-FiUISupportedExternalAccessoryProtocolsiPhoneiPodtouch“”iPhoneOS3.0UIViewGroupOpacityBooleanCoreAnimationNOiPhoneOS3.0UIViewEdgeAntialiasingBooleanCoreAnimationNOiPhoneOS3.0Info.plistInfoPlist.strings“”1-4UIRequiredDeviceCapabilities1-4 UIRequiredDeviceCapabilitiestelephonyPhonetelURLsmsMessagessmsURLstill-cameraUIImagePickerControllerauto-focus-cameravideo-cameraUIImagePickerControllerwifiaccelerometerUIAccelerometerlocation-servicesCoreLocationGPSgpsgpsGPSAGPSlocation-servicesWi-fiGPSmagnetometerCoreLocationmicrophoneopengles-1OpenGLES1.1opengles-2OpenGLES2.0HomeIcon.pngInfo.plistCFBundleIconFilePNG57x57Info.plistUIPrerenderedIcon1-3ad-hocAppStore512x512iTunesArtworkiTunesDefault.pngPNGURLDefault-scheme.pngschemeURLDefault.pngXcodeProjectAddtoProjectAdd“”Nibnib“”nibnibnibnibInterfaceBuildernibUIKitXcodenibInterfaceBuildernibnibnibnibnibNSBundleiPhonenibInterfaceBuilderiPhoneiPhoneOSUIApplicationiPhoneiPhone1-5UIApplicationDelegate1-5 applicationDidFinishLaunching:applicationWillTerminate:HomeSMSSleepHomeSMS1-6SMSSleep/Wake1-6 1.SMS2.applicationWillResignActive:OpenGLOpenGL3.4.applicationDidBecomeActive:OpenGL5.applicationWillTerminate:HomelayoutSubviews/applicationWillResignActive:applicationDidBecomeActive:iPhoneOSUIKit■applicationDidReceiveMemoryWarning:■UIViewControllerdidReceiveMemoryWarning■UIApplicationDidReceiveMemoryWarningNotificationUIApplicationDidReceiveMemoryWarningNotification——HomeiPhoneOS■Info.plistUIInterfaceOrientationUIInterfaceOrientationLandscapeLeftUIInterfaceOrientationLandscapeRight■■shouldAutorotateToInterfaceOrientation:YESNO—OpenGLES—UIInter