introduction to ios apps development

Download Introduction to iOS Apps Development

Post on 17-Nov-2014




1 download

Embed Size (px)




  • 1. Introduction to iOS Development PROF. ERWIN M. GLOBIO, MSIT

2. Prerequisites for iOS Development Previous experience in another Object Oriented Programming(OOP) language will be helpful Understanding of OOP concepts. Some understanding of C can be helpful, but is not required. Objective-C builds on top of C. You will eventually run into pointers and other fundamental C features Previous experience with an Integrated Development Environment (IDE) is helpful, but not required Mac computer running OS X Lion If you plan to submit to the App Store, you will need Apple devices to do real testing on. The simulator is not good enough. PROF. ERWIN M. GLOBIO, MSIT 3. Introduction iOS is the operating system that runs iPhones, iPod Touches,iPads, and Apple TVs. The language used to develop software for iOS is Objective-C. This class will teach you how to get started but will not havetime to teach you everything. PROF. ERWIN M. GLOBIO, MSIT 4. What is iOS? iOS is an operating system its a subset of Mac OS X. The iOS SDK is the software development kit that allows application programs to utilize classes and frameworks provided by the SDK. This class will focus on iOS SDK6. iOS is multitasking and runs on several different devices(iPhones, iPod Touches, iPads, and Apple TVs). Apple provides an IDE called Xcode. Xcode is the IDE used by iOS (and OS X) developers. Xcode provides an interface to the compiler, editor, debugger, and code profiling tools. PROF. ERWIN M. GLOBIO, MSIT 5. PROF. ERWIN M. GLOBIO, MSIT 6. Device Features For the rest of the presentation, assume we are discussing iPhones, iPads, and iPod Touches. Although Apple TV runs iOS, Apple currently does not allow developers to create custom code for this device (yet). SQLite for structured data storage Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) GSM Telephony (hardware dependent) Bluetooth, EDGE, 3G, and WiFi (hardware dependent) Camera, GPS, compass, and accelerometer (hardware dependent) Rich development environment, including a device simulator, tools for debugging, memory and performance profiling PROF. ERWIN M. GLOBIO, MSIT 7. Capabilities of Mobile Devices Internet access Touch screen GPS (global positioning system satellite-based system todetermine a location) Local storage Camera Media playback Phone Bluetooth for device communication PROF. ERWIN M. GLOBIO, MSIT 8. Limitation of Mobile Devices Screen size Touch screen No physical keyboard or trackball a finger or stylus is the primary interface to the device Memory Storage Battery Life Cell network Sometimes flaky networks Ergonomics PROF. ERWIN M. GLOBIO, MSIT 9. Download the iOS SDK Download the latest from the Apple App store This is only available for Apple Macintosh computers Its free To build to device and submit to the app store, you will berequired to becomes a register Apple iOS developer It is $99 year for the basic account PROF. ERWIN M. GLOBIO, MSIT 10. PROF. ERWIN M. GLOBIO, MSIT 11. The Xcode Integrated Development Environment This consists of a single-window user interface, consisting of the Project Window, Jump and Navigation Bars, and the newly integrated Interface Builder designer. PROF. ERWIN M. GLOBIO, MSIT 12. PROF. ERWIN M. GLOBIO, MSIT 13. Features of the iPhone Simulator The"iPhone Simulator", simulates various features of a real iOS device. Although the iPhone simulator is just a simulator to simulate certain tasks, it does come with some limitations. PROF. ERWIN M. GLOBIO, MSIT 14. Simulator Limitations Making Phone calls Accessing the Accelerometer/Gyroscope Sending and Receiving SMS messages Installing applications from the App Store Accessibility to the Camera Use of the Microphone Several Core OpenGL ES Features PROF. ERWIN M. GLOBIO, MSIT 15. Instruments The Xcode instruments allow you to dynamically trace and profile the performance of your Mac OSX, iPhone, and iPad applications. You can also create your own Instruments using DTrace and the Instruments custom builder. Monitor your applications for memory leaks, which can cause unexpected results. Gain a deeper understanding of the execution behavior of your applications. PROF. ERWIN M. GLOBIO, MSIT 16. PROF. ERWIN M. GLOBIO, MSIT 17. Quick Terminology: MVC Model-View-Controller (MVC) MVC is the paradigm of iOS programming Model: Hold data, should know nothing of the interface View: code for getting data in/out of a view. Deals with items like buttons, lists, tables, etc Controller: keeps the Model objects and View objects in sync PROF. ERWIN M. GLOBIO, MSIT 18. PROF. ERWIN M. GLOBIO, MSIT 19. PROF. ERWIN M. GLOBIO, MSIT 20. PROF. ERWIN M. GLOBIO, MSIT