iOS 8 for Programmers: An App-Driven Approach with Swift

swift

 

As the title says the book focuses on programming in iOS 8 with a different approach than normal book, that is the app-driven approach.

The book starts with the introduction of the different devices: iPod, iPhone, iPad; underlining the growth of these devices comparing with their financial results. Also, the first chapter tells the history of iOS from the beginning up to now with its new features, like iWatch.
The fundamentals of this chapter are the features introduced in Swift compared to Objective C, demostrating how Swift can help us to improve our life as an iOS developer.

With the second chapter we can start to develop our first iOS app, step by step, even though it is only a classic “Welcome App”, but it is enough to start and to get familiar with the IDE xCode. Obviously each step is described meticulosly, so nothing is taken for granted.
This chapter introduces the principal parts of xCode and the first settings to start a project, overall the autolayout, to help us to love the design of apps.

The third chapter moves on to another classic app: the calculator. Of course the approach is the same as the previous chapter but this time it introduces the different templates for apps, UI objects and the basis of MVC pattern, starting with the ViewController.
Also, it introduces outlets and actions for UI. The plus of this chapter is the base of the overloading of operators.

With the fourth chapter the level of app grows up: Twitter Searches App. Studying the search pattern of Twitter we can create a classic app to search tweets. Using the Master-Detail Template the book shows us how to create a master view with the list of the tweets and a detail view where the details of the tweet selected is displayed. In this app are used different concepts, like dictionary, closure and several design patterns like delegation, target-action and observer. The component UISplitViewController introduced in this chapter, allows us to show more than one ViewController in base of the device. For example in iPhone the app will display the master view and then detail view, instead in an iPad the app will display both master and detail view at the same time, dividing the screen.

The fifth chapter introduces another app: Flag Quiz App. It is the classic quiz game where users have to select the correct answer based on the question. This time iterative cycle like while, for, foreach, etc, animation on the view and the use of C standard function from Darwin Module are introduced. For instance the random function.

The sixth chapter introduces SpriteKit for the classic Cannon Game App, one of the first game app that usually are developed to test the game development skills. The chapter also introduces the basis of game development, that is physics, collision detection and geometry. Naturally even the audio management are described.

With the seventh chapter are introduced the concept of multitouch with the doodzl App. With our fingers we can draw objects at screen handling the various types of motion.

Another of classic first app the usually the developer made are Address Book App. It is presented at eighth chapter. To display the several information of one contact is used the TableView layout that allows us to order all the information without lost 3 hours to align the various components. The high amount of lines of code help us to understand every smallness that can occur when we try to develop this type of app.

Finally, the last chapter introduces the app store and how set and publish application on it. The chapter focuses on different type of situation that when you publish an app comes up. For example multilanguages, the price of your app, is better free or fee? the In-App Advertising through iAd and so on.

In the end, I highly recommend this book for anyone who wants to develop with Swift language.

No Comments

Post a Comment