APIs with iOS 8 and Swift by Rex St John
I am a mobile software engineer and technical evangelist working for Intel’s Mashery subsidiary.
- ios
- hackathons
- devrel
- apis
Originally published at rexstjohn.com on October 29, 2014. Recovered from the Internet Archive.
About Rex St John
I am a mobile software engineer and technical evangelist working for Intel’s Mashery subsidiary. Aside from attending dozens of hackathons, workshops and technical events, it is my job to help developers learn about and engage with REST APIs.
Introduction
Hello API-friends, I have written this free eBook to help beginners (who I often meet at college and high school hackathons) build their first application with iOS 8, the Swift programming language and Xcode 6. The ultimate goal is to help you create your first Universal (iPhone + iPad) iOS 8 application using Interface Builder, make network calls to an Intel Mashery API and populate a UISplitViewController with the results!
Furthermore, I will be using this guide as a method to explore the basics of testing, REST API fundamentals and HTTP Networking. Instead of simply showing you a few code snippets, I will try to steer you in the direction of common mobile application development best practices!
Some of the topics I will explore here:
- Creating a iPhone + iPad application using Interface Builder and Universal Storyboards
- Using Adaptive Layout to create dynamically sizing table cells and table view controllers
- Using GitHub Submodules to integrate the AlamoFire HTTP networking library
- Writing basic Async tests using XCTest
- Basics of the Swift programming language
- Simple UIAutomation with Xcode 6 instruments
Thanks for stopping by my site, I hope you enjoy the ebook and find it to be a useful starting point.
Chapter 1: Lets Network!
In this chapter, I will be exploring the fundamentals of REST API calls using the Swift programming language, the AlamoFire networking library and the JamBase Intel Mashery API. Click here to read it.
Chapter 2: Let There Be Tables!
In this chapter, we will explore creating a Universal Storyboard, displaying the results we got from our JamBase API calls in a table and then viewing details of each data item when the user clicks on the table cell. Coming soon…
Chapter 3: Lets Test!
Much like eating our broccoli, testing is good for us but we may not feel like doing it. Lets set up some basic testing for our new UI and REST API calls to ensure that we are keeping our code modular and reusable. Coming soon…
Additional Reading
I recommend all beginners with iOS to buy the Swift and iOS 8 by Tutorials books from Ray Wenderlich’s website (he ain’t even paying me to say that!). There are many other resources online but those books are a great starting place.