Successfully reported this slideshow.

iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 08)

0

Share

Loading in …3
×
1 of 21
1 of 21

iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 08)

0

Share

Download to read offline

This lecture investigates using parse.com as a backend for persisting data in an iOS app written in Swift. It also looks at how to manage users and use Parse.com's Facebook integration.

This lecture is part of a course intended to be an intensive and very compressed deep dive into iOS development in Swift. Visit the course web page to get copies of the course outline, lecture notes, sample code, etc.

Course website: http://www.themobilemontage.com/2015/05/12/ios-bootcamp-learning-to-create-awesome-apps-on-ios-using-swift/

This lecture investigates using parse.com as a backend for persisting data in an iOS app written in Swift. It also looks at how to manage users and use Parse.com's Facebook integration.

This lecture is part of a course intended to be an intensive and very compressed deep dive into iOS development in Swift. Visit the course web page to get copies of the course outline, lecture notes, sample code, etc.

Course website: http://www.themobilemontage.com/2015/05/12/ios-bootcamp-learning-to-create-awesome-apps-on-ios-using-swift/

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 08)

  1. 1. Mobile Computing and the Cloud Lecture 08 Jonathan R. Engelsma
  2. 2. CLOUD COMPUTING CATEGORIES • Infrastructure as a Service (IaaS) • deliver computer infrastructure as a service • Platform as a Service(PaaS) • deliver infrastructure and a software stack as a service • Software as a Service (SaaS) • deliver an application as a service
  3. 3. NEW CATEGORY! • Mobile Backend as a Service (MBaas) • parse.com • kinvey.com • firebase.com • kii.com
  4. 4. MBAAS • Takes the complexity out of building a backend platform for a mobile app. • Really just a subset of PaaS. • Driven in part by “Mobile First” type deployments
  5. 5. PARSE.COM • We will focus on parse.com • Acquired by Facebook in April 2013! • Provides • login / authentication services • user management • easy to create RESTful APIs • push notifications
  6. 6. SETTING UP PARSE (1) • Step 1: Download the parse.com iOS framework: • https://parse.com/docs/downloads • Step 2: Unpack and drag the Parse.framework, ParseUI.framework and Bolts.framework to your project folders in Xcode (copy!) Assumption:Adding to an existing project.
  7. 7. SETTING UP PARSE(2) • AudioToolbox.framework • CFNetwork.framework • CoreGraphics.framework • CoreLocation.framework • MobileCoreServices.frame work • Accounts.framework • QuartzCore.framework • Security.framework • StoreKit.framework • SystemConfiguration.fram ework • Social.framework • libz.dylib & libsqlite3.dylib • Step 3: Manually add the following dependencies:
  8. 8. SETTING UP PARSE(3) • Step 4: Register for a free account on parse.com and establish a new app instance.
  9. 9. SETTING UP PARSE (4) • Step 5: Point app to appropriate Parse app instance in AppDelegate implementation.
  10. 10. SETTING UP PARSE (5) • Step 6:Add code to controller to persist objects: a) import Parse at the top of your Swift source file b) add code to persist data from parse where appropriate.
  11. 11. SETTING UP PARSE (6) • Step 7:Validate the data has been persisted on parse.com:
  12. 12. SETTING UP PARSE (7) • Step 8:Add code that queries for previously persisted objects!
  13. 13. SAVING/RETRIEVING DATA FROM PARSE.COM Demo!
  14. 14. MANAGING USERS WITH PARSE.COM
  15. 15. MANAGING USERS (1) • Preliminaries: • Add parse.com ParseUI.framework and ParseFacebookUtilsV4.framework to Xcode. • Download FB iOS SDK and add framework and dependencies to your Xcode project. • Add FB SDK headers to your bridging header in order to have visibility in Swift.
  16. 16. MANAGING USERS (2) • On the network side: • Make sure you have a parse app instance created for your iOS app. • Make sure you have created a Facebook app instances created for your iOS app.
  17. 17. MANAGING USERS (3) • AppDelegate mods
  18. 18. MANAGE USERS (4) • ViewController mods:
  19. 19. MANAGING USERS (5) • View Controller implements the delegates for PFLogInViewController and PFSignUpViewController: • methods for • logging in, canceling, errors, validation, etc.
  20. 20. MANAGING USERS WITH PARSE.COM Demo!

×