8. Networking
• Why do we need web server’s data in iOS?
• What kind of data we can get from server?
• JSON or XML or something else?
• What kind of server API we need?
• RESTful API , any other?
10. Networking continued
• API for server request
• NSURLConnection
• NSURLSession (iOS 7 on wards)
• AFNetworking (third party)
• Alamofire (written in swift)
11. Networking continued
• Use asynchronous server request (do not block main thread).
• Use background thread for downloads and uploads.
• Don’t store large size image in disk/database but curl when needed in the background using
background thread.
• Do not initiate heavy downloads on mobile data, check if device is using wifi.
13. Swift
• What is swift?
• What is new in swift?
• It is designed for type safety
• Tuples
• Generics
• Memory is managed automatically.
• Functional programming pattern. e.g. Filters.
• Functions are first class objects.