today
play

Today What is this class all about? Why am I here? Prerequisites - PowerPoint PPT Presentation

Today What is this class all about? Why am I here? Prerequisites You must be a strong object-oriented programmer. iOS Overview What s in iOS? Show me! A demo with a thousand words is worth tens of thousands of words. CS193p Fall 2017-18


  1. Today What is this class all about? Why am I here? Prerequisites You must be a strong object-oriented programmer. iOS Overview What’ s in iOS? Show me! A demo with a thousand words is worth tens of thousands of words. CS193p Fall 2017-18

  2. What will I learn in this course? How to build cool apps Easy to build even very complex applications. Result lives in your pocket or backpack! Very easy to distribute your application through the AppStore. Vibrant development community. Real-life Object-Oriented Programming The heart of Cocoa Touch is 100% object-oriented. Application of MVC design model. Many computer science concepts applied in a commercial development platform: Databases, Graphics, Multimedia, Multithreading, Animation, Networking, and much, much more! Numerous students have gone on to sell products on the AppStore. CS193p Fall 2017-18

  3. Prerequisites Prior Coursework Object-Oriented Programming experience mandatory. CS106A&B (or X) required & CS107 or CS108 or CS110 also (at a minimum) required. (or equivalent for non-Stanford undergrads) CS193p Fall 2017-18

  4. What’ s in iOS? Cocoa Touch Core OS OSX Kernel Power Management Media Mach 3.0 Keychain Access BSD Certificates Core Services Sockets File System Core OS Security Bonjour CS193p Fall 2017-18

  5. What’ s in iOS? Cocoa Touch Core Services Collections Core Location Media Address Book Net Services Networking Threading Core Services File Access Preferences Core OS SQLite URL Utilities CS193p Fall 2017-18

  6. What’ s in iOS? Cocoa Touch Media Core Audio JPEG, PNG, TIFF Media OpenAL PDF Audio Mixing Quartz (2D) Core Services Audio Recording Core Animation Core OS Video Playback OpenGL ES CS193p Fall 2017-18

  7. What’ s in iOS? Cocoa Touch Cocoa Touch Multi-Touch Alerts Media Core Motion Web View View Hierarchy Map Kit Core Services Localization Image Picker Core OS Controls Camera CS193p Fall 2017-18

  8. Platform Components Tools s t n e m u r t Xcode 9 s n I Language(s) return cards.indices.filter { cards[$0].isFaceUp }.oneAndOnly Core Motion a t a D Frameworks e r o Map Kit C Foundation UIKit MVC Design Strategy CS193p Fall 2017-18

  9. Demo Concentration Game All this stuff can be very abstract until you see it in action. We’ll start getting comfortable with Swift 4 and Xcode 9 by building something right away. Two part demo starting today, finishing on Wednesday. Today’ s topics in the demo … Creating a Project in Xcode 9, including building a UI and running in the iOS Simulator Subclassing in Swift, including how to specify instance variables and methods Connecting UI elements to invoke methods in our Swift code (actions) print (outputting to the console using \() notation) Connecting properties (instance variables) from our Swift code to the UI (outlets) Accessing iOS documentation from our code Automatically doing something every time a property’ s value changes Array Optionals CS193p Fall 2017-18

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend