Programming iOS 14: Dive Deep into Views, View Controllers, and Frameworks - Programming Ebook

Latest

Download Programming Ebook

Wednesday, October 28, 2020

Programming iOS 14: Dive Deep into Views, View Controllers, and Frameworks

Programming iOS 14
Programming iOS 14




Book Details 
             TitleProgramming iOS 14: Dive Deep into Views, View Controllers, and Frameworks
         Author: Matt Neuburg
    Language: English
        SubjectSwift / Computers & Technology / Programming / Apple Programming
               Size: 10M
         Format: EPUB


The Scope of This Book
Programming iOS 14 is the second of a pair with my other book, iOS 14 Programming Fundamentals with Swift; it picks up where the other book leaves off. If writing an iOS program is like building a house of bricks, iOS 14 Programming Fundamentals with Swift teaches you what a brick is and how to handle it, while Programming iOS 14 hands you some actual bricks and tells you how to assemble them.
So this book, like Homer’s Iliad, begins in the middle of the story. The reader is expected to jump with all four feet into views and view controllers. Topics such as the Swift programming language, the Xcode IDE, including the nature of nibs, outlets, and actions, and the mechanics of nib loading, and the fundamental conventions, classes, and architectures of the Cocoa Touch framework, including delegation, the responder chain, key–value coding, key–value observing, memory management, and so on, were all taught in iOS 14 Programming Fundamentals with Swift.


So if something appears to be missing from this book, that’s why! If you start reading Programming iOS 14 and wonder about such unexplained matters as Swift language basics, Xcode usage, the UIApplicationMain function, the nib-loading mechanism, Cocoa patterns of delegation and notification, and retain cycles, wonder no longer! I don’t explain them here because I have already explained them in iOS 14 Programming Fundamentals with Swift. If you’re not conversant with those topics, you might want to read that book first; you will then be completely ready for this one.

Here’s a summary of the major sections of Programming iOS 14:

Part I describes views, the fundamental units of an iOS app’s interface. Views are what the user can see and touch in an iOS app. To make something appear before the user’s eyes, you “need a view. To let the user interact with your app, you need a view. This part of the book explains how views are created, arranged, drawn, layered, animated, and touched.

Part II starts by discussing view controllers. Perhaps the most important aspect of Cocoa programming, view controllers enable views to come and go coherently within the interface, allowing a single-windowed app running on what may be a tiny screen to contain multiple screens of material. View controllers are used to manage interface and to respond to user actions; most of your app’s code will be in a view controller. This part of the book talks about how view controllers work, and the major built-in types of view controller that Cocoa gives you. It also describes every kind of view provided by the UIKit framework — the primary building blocks with which you’ll construct an app’s interface.
Part III surveys the most commonly used frameworks provided by iOS. These are “clumps of code, sometimes with built-in interface, that are not part of your app by default, but are there for the asking if you need them, allowing you to work with such things as sound, video, user libraries, maps, and the device’s sensors.

Part IV wraps up the book with some miscellaneous but significant topics: files, networking, threading, and how to implement undo.

Appendix A summarizes the basic lifetime event messages sent to your app.
Appendix B catalogs some useful utility functions that I’ve written. My example code takes advantage of these functions, so you should keep an eye on this appendix, consulting it whenever a mysterious method name appears.

Appendix C is an excursus discussing an often misunderstood aspect of iOS programming: asynchronous code.

Someone who has read this book and is conversant with the material in iOS 14 Programming“Fundamentals with Swift should be capable of writing a real-life iOS app with a clear understanding of the underlying fundamentals and techniques and a good sense of where the app is going as it grows and develops. The book itself doesn’t show how to write any particularly interesting iOS apps, but it is backed by dozens of example projects that you can download from my GitHub site, http://github.com/mattneub/Programming-iOS-Book-Examples, and it uses my own real apps and real programming situations to illustrate and motivate its explanations.
What’s Not in This Book

iOS programming is a vast subject. I can’t possibly cover it all, so this book is intended to prepare you for your own further explorations. Certain chapters, especially in Parts III and IV, introduce a topic, providing an initial basic survey of its concepts, its capabilities, and its documentation, along with some code examples; but “the topic itself may be far more extensive. My goal is to set your feet firmly on the path; after reading the discussion here, you’ll be equipped to proceed on your own whenever the need or interest arises.

In addition, many entire areas of iOS have had to be excluded from this book entirely:
SpriteKit
SpriteKit provides a built-in framework for designing 2D animated games.
SceneKit
Ported from macOS, the SceneKit framework makes it much easier to create 3D games and interactive graphics.
GameplayKit
This framework provides the architectural underpinnings for writing a game app.
Metal



No comments:

Post a Comment