This video upload is all about Affordable iPhone Mobile Apps Development Services company known as Grepix Infotech. In this video, you will get complete details about our services. To know more about our iPhone app development services kindly visit https://grepixit.com/iphone-app-development-company.html
2. Introduction to iPhone Development
TaskContents
Application Runtime
CoreArchitecture and Life-cycles
What’sin a bundle?
Theresources in an app bundle
Customizing Behavior
How does it launch? IPC?
Relation with Tools
How do we get the app on thephone?4
1
2
3
3. Application Life-Cycle
How yourapplication livesand dies
User taps icon onhome screen
main()
UIApplicationMain()
Event
Loop
System requests termination
Application actually terminates
4. Main and UI Application
• main()
■ Justlike any other main functions (C,C++, etc)
■ Createstop-level autorelease pool
■ Starts application with UIApplicationMain
• UIApplicationMain()
■ Createsinstance of UIApplication that is responsible for
actually launching your application (loading main Nib file).
■ Takesfour parameters: argc, argv, ignore othertwo.
5. Application Delegate
• Monitors high level or critical actions in application
■ Launch
■ Terminate
■ Memory warnings
• Conforms to Objective-C protocol (all methods optional)
6. TheMain Nib File
• Remember: archive of objects.
• One of these objects is your main window.
• Fornow, think of the Main Nib file asyour interface, asthe year
progresses, we’ll show how to load additional Nibfiles.
• Interface elements not in your main Nib file:
■ Status bar
■ Application instance (we’ll talk about proxy objects in three
weeks)
7. Life-Cycle Review
Usertouches icon on home screen
Systemcalls main()
main() calls UIApplicationMain()
UIApplicationMain() creates instance of UIApplication
UIApplication instance loads main Nib file, setsup based on application properties
UIApplication instance goes into run loop, waiting for and forwarding events to interfaceelements
(instances of UIResponder)
Usertaps home button or does another termination activity
UIApplication instance tells your delegate that the application isterminating
UIApplicationMain() exits, main() exits, processexits
8. Sandboxing
• iPhone OSdoes not give your application free reign like it does
on OSX.
• Yourapplication only hasaccessto acertain part of the file
system, something like:/ApplicationRoot/ApplicationID
• Thisis asecurity device preventing asingle application from
destroying your phone or iPodTouch.
9. Virtual Memory
• Virtual memory on the phone is quite interesting.
• It exists, but notreally.
• It exists in that itgives your application the full virtual 32-bit
address space.
• However, it does not write volatile pages to disk (b/cflash
memory only hassomany write cycles).
Application Did Receive Memory Warning: in your
delegate
10. Application Contents
File Description
MyApp Theactual application executable code
Icon.png Yourapplication’s home screen icon
MainWindow.nib Themain Nib file containing your interface
Info.plist Property list with information about yourapplication
myimage.png Anon-localized image or other resource
Settings.bundle Preference pane for the Settings app
Icon-Settings.png Icon for settings application
Default.png Theimage to show while your app is launching
en.lproj, fr.lprog,… Localized folders (ignore these for now)
Other items… …that you should ignore for now.
11. My App
• Thecompiled, executable code for your application.
• Actual name is the name of your application bundle minus the
“.app”extension.
• If your application bundle doesn’t have this, you don’t actually
have an application, you just have afolder of stuff.
13. Introduction to iPhone Development
TaskContents
Application Runtime
CoreArchitecture and Life-cycles
What’sin a bundle?
Theresources in an app bundle
Customizing Behavior
How does it launch? IPC?
Relation with Tools
How do we get the app on thephone?4
1
2
3