13. iPhone Workshop-Agenda What is iPhone? iPhone/iOS Technology Overview Devices Running iOS Types of iOS Applications
14. Agenda- Continue… Development Tools Overview Of Programming Language- Objective C Managing Memory What is AppStore? Make Your App Available On AppStore
17. What is iPhone? More Than Smartphone…!! Flying Visit To iPhone Features Unique User Interface Picker Switch Pinch-In & Pinch-Out e.g. Map Navigation & Tab And now… Retina Display in 4G Multi-Touch Facility
18. What is iPhone? Face-Time e.g. Video Calling Notifications Keeps You Up-to-date Ad Integration Third Party Ad Integration Integrated Locations Services Accelerometer Game Center e.g. Multiplayer game All on iOS Operating System…
37. iOS Technology OverviewiOS Development Environment Only Works On Mac-based System Again…!! Requires iOS SDK Installed XCode Interface Builder Instruments iOS Simulator Available Few Cross-Platform Tools…!! E.g. Appcelator
42. Types Of iOS Applications Native Apps Navigation Based Tab Based Combo: Navigation, Tab and Modal Web Apps Maps (comes with device) Dash Code – Tool For WebApps Utilize Power Of HTML & JavaScript Games…Be Addicted..!!!
75. (C) - 2007 Copyright InfoStretch Corporation Managing Memory Basic Fundamentals Memory Management Rules Passing objects between Methods Working with Properties Deallocating Object Leaks and Static Analyzer Questions? 37
76. (C) - 2007 Copyright InfoStretch Corporation Basic Fundamentals What is memory management? “Managing the resources efficiently and effectively”. Memory management in other languages. In C,C++ we have malloc, calloc and free. In other object oriented languages we have Garbage Collectors. So what is there in Objective C? “Retain Count” No need to worry about Primitive Data Types 38
77. (C) - 2007 Copyright InfoStretch Corporation Memory Management Rules You own any object you create. You “create” an object using a method whose name begins with “alloc” or “new” or contains “copy”. e.g. Alloc e.g. Copy 39
78. (C) - 2007 Copyright InfoStretch Corporation Memory Management Rules You can take ownership of an object using retain method. You must relinquish ownership of objects you own when you’re finished with them. You relinquish ownership of an object by sending it a release message or an autorelease message. You must not relinquish ownership of an object you do not own. 40
79. (C) - 2007 Copyright InfoStretch Corporation Passing Objects Between Methods This is wrong This is also wrong 41
80. (C) - 2007 Copyright InfoStretch Corporation Passing Objects Between Methods The right way You can also do this 42
81. (C) - 2007 Copyright InfoStretch Corporation Working with Properties Property Declaration Initializing the property variables Retain 43
82.
83. (C) - 2007 Copyright InfoStretch Corporation Deallocating Object When object’s retain count drops to 0, its memory is reclaimed—in Cocoa terminology it is “freed” or “deallocated.” Os does this calling the “dealloc” method. e.g. You should never invoke another object’s dealloc method directly. 45
86. AppStore Overview Apple Developer Program Individual Account Enterprise Account Provisioning Portal Device UDID Developer Certificate Provisioning Profile iTunes Connect
87. AppStore Overview Submitting Your App To AppStore Apple Human Interface Guidelines Apple Review Documentation Apple Review Process World Wide Stores Think…! Before Using Third Party APIs/Libs Be Ready..!!