140 likes | 170 Views
This video upload is all about Affordable iPhone Mobile Apps Development Services company known as Grepix Infotech.In this video you will get a complete details about our services.To know more about our iPhone app development services kindly visit https://grepixit.com/iphone-app-development-company.html
E N D
Introduction to iPhone Development Contents ApplicationRuntime Core Architecture andLife-cycles Task 1 What’s in abundle? The resources in an appbundle 2 CustomizingBehavior How does it launch?IPC? 3 Relation withTools How do we get the app on thephone? 4
ApplicationLife-Cycle How your application lives anddies User taps icon onhome screen main() UIApplicationMain() Event Loop System requeststermination Application actuallyterminates
Main andUIApplication • main() • Just like any other mainfunctions (C, C++, etc) • Creates top-level autorelease pool • Starts application withUIApplicationMain • UIApplicationMain() • Creates instance of UIApplicationthat is responsible for actually launching your application (loading main Nibfile). • Takes four parameters: argc, argv, ignore othertwo.
ApplicationDelegate • Monitors high level or critical actions inapplication • Launch • Terminate • Memorywarnings • Conforms to Objective-C protocol (all methodsoptional)
The Main NibFile • Remember: archive ofobjects. • One of these objects is your mainwindow. • For now, think of the Main Nib file as your interface, as the year progresses, we’ll show how to load additional Nibfiles. • Interface elements not in your main Nibfile: • Status bar • Application instance (we’ll talk about proxy objects inthree weeks)
Sandboxing • iPhone OS does not give your application free reign like it does on OSX. • Your application only has access to a certain part of the file system, something like:/ApplicationRoot/ApplicationID • This is a security device preventing a single application from destroying your phone or iPodTouch.
VirtualMemory • Virtual memory on the phone is quiteinteresting. • It exists, but notreally. • It exists in that itgives your application the full virtual 32-bit addressspace. • However, it does not write volatile pages to disk (b/cflash memory only has so many writecycles). • ApplicationDidReceiveMemoryWarning:in your delegate
MyApp • The compiled, executable code for yourapplication. • Actual name is the name of your application bundle minusthe “.app”extension. • If your application bundle doesn’t have this, you don’tactually have an application, you just have a folder ofstuff.
Development toDevice Writecode Build fordevice Install Sign
Introduction to iPhone Development Contents ApplicationRuntime Core Architecture andLife-cycles Task 1 What’s in abundle? The resources in an appbundle 2 CustomizingBehavior How does it launch?IPC? 3 Relation withTools How do we get the app on thephone? 4