Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Matt Neuburg

Rating No ratings yet

If you’re grounded in the basics of Swift, Xcode, and the Cocoa framework, this book provides a structured explanation of all essential real-world iOS app components. Through deep exploration and copious code examples, you’ll learn how to create views, manipulate view controllers, and add features from iOS frameworks. • Create, arrange, draw, layer, and animate views that respond to touch • Use view controllers to manage multiple screens of interface • Master interface classes for scroll views, table views, collection views, text, popovers, split views, web views, and controls • Dive into frameworks for sound, video, maps, and sensors • Access user libraries: music, photos, contacts, and calendar • Explore additional topics, including files, networking, and threads Stay up-to-date on iOS 14 innovations, such as: • Control action closures and menus • Table view cell configuration objects • Collection view lists and outlines • New split view controller architecture • Pointer customization on iPad • New photo picker and limited photos authorization • Reduced accuracy location • Color picker, new page control behavior, revised date pickers, and more! Want to brush up on the basics? Pick up iOS 14 Programming Fundamentals with Swift to learn about Swift, Xcode, and Cocoa. Together with Programming iOS 14, you’ll gain a solid, rigorous, and practical understanding of iOS 14 development.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A rigorous, example-driven tour of the iOS 14 interface layer for developers who already know Swift and want to understand how views, view controllers, and system frameworks actually work. Best for intermediate iOS programmers who prefer deep explanation over quick recipes. 【Book Arc】 - **Opening (~0%–10%)**: Establishes the view as the fundamental unit — hierarchy, tags, subview management — and frames the central layout problem: how interfaces adapt across screen sizes and multitasking, introducing manual layout, autoresizing, and autolayout as the three strategies. - **Early (~10%–30%)**: Moves into drawing and layers: graphics contexts, UIKit vs. Core Graphics tools, paths, and CALayer geometry (frame, bounds, position, anchorPoint), including common pitfalls like invisible zero-sized layers. - **Middle (~30%–50%)**: Covers animation and touch — spring, keyframe, and property animators, the tension between animating frames and obeying autolayout constraints, and gesture recognizer conflict resolution via delegates and `gestureRecognizerShouldBegin(_:)`. - **Late (~50%–80%)**: The interface-class core: scroll views, table views, collection views, text, popovers, split views, web views, and controls, plus the iOS 14 innovations (cell configuration objects, collection view lists and outlines, the new split view controller architecture). - **Ending (~80%–100%)**: Framework and system integration: sound, video, maps, sensors, user libraries (music, photos, contacts, calendar), and additional topics such as files, networking, and threads. - **Throughout**: Xcode tooling runs alongside the code — the view debugger, view hierarchy export, and interface previews across devices, orientations, and languages. 【Key Takeaways】 - **Layout is the spine of the book** (Opening): three strategies — manual `layoutSubviews`, autoresizing masks, and autolayout constraints — with autolayout presented as the realistic default for adapting to varied screen sizes. (Opening) - **Autolayout and animation are fundamentally opposed** (Middle): animating a view's frame under constraints causes jumps when layout runs; the correct pattern is animating `layoutIfNeeded` inside an animation block. (Middle) - **Layers have derived geometry worth understanding** (Early): a layer's `frame` is computed from bounds, position, and anchorPoint — treat it as a convenience façade, and remember code-created layers start at zero size and stay invisible until given dimensions. (Early) - **Drawing splits into two tool sets** (Early): UIKit classes (UIImage, UIBezierPath, UIColor, NSString) versus Core Graphics contexts and paths; knowing which needs a current context versus an explicit one prevents beginner confusion. (Early) - **Gesture conflicts are resolved deliberately, not accidentally** (Middle): `gestureRecognizerShouldBegin(_:)` lets a view bow out of a gesture so controls like buttons and sliders behave correctly, with delegates handling blocking and mediation. (Middle) - **iOS 14 modernizes the interface layer** (Late): control action closures and menus, table view cell configuration objects, collection view lists and outlines, the revised split view controller architecture, and iPad pointer customization. (Late) - **Privacy and pickers changed in iOS 14** (Late): the new photo picker with limited photos authorization, reduced-accuracy location, and revised date pickers and color picker reflect platform-wide shifts. (Late) - **Frameworks extend the app beyond its own UI** (Ending): sound, video, maps, sensors, and user libraries (music, photos, contacts, calendar) are treated as first-class app components. (Ending) 【Reading Tips】 - Deep-read the layout and animation chapters together; the constraint-versus-frame conflict is the single most valuable mental model in the book. - Skim the drawing and layer geometry sections if you rarely do custom rendering, but keep the anchorPoint and frame/bounds distinction as a reference. - Treat the interface-class chapters (table, collection, text, split view) as the practical core — this is where most real app work happens. - Keep Xcode open: the view debugger, hierarchy export, and multi-device previews are described as workflow tools, not trivia. - Read the iOS 14 innovation notes as a migration checklist if you maintain an existing codebase. 【Coverage Limits】 The excerpts cover the book's structure and major themes but do not include full chapter titles or detailed code walkthroughs for every framework; specific APIs beyond those named in the blurb are not verified here.
Excerpt 1
ew higher up the view hierarchy the viewWithTag(_:) message. Seeing that all tags of interest are unique within their region of the hierarchy is up to you. M...
View in text
Excerpt 2
. If an instance of this UIView subclass appears in the nib editor, then its self-configuration methods, such as willMove(toSuperview:), will be compiled and...
View in text
Excerpt 3
be an odd thing to do, as it somewhat defeats the purpose.) To move the CAScrollLayer’s bounds, you can talk either to it or to a sublayer (at any depth): Ta...
View in text
Excerpt 4
its behavior, use a custom UIView subclass and override it. Its parameter is a gesture recognizer belonging to this view or to a view further up the view hie...
View in text
Excerpt 5
ace and won’t be dismissed. The idea is that you might want to coordinate some change of interface with the dismissal gesture (by means of the presented view...
View in text
Excerpt 6
(drawn from a WWDC 2010 video) demonstrating an override of layoutSubviews that keeps the scalable view centered in either dimension whenever it is smaller t...
View in text
Excerpt 7
nks in terms of cells and index paths, and the UITableView‐ DataSource and UITableViewDelegate methods are couched in those terms. But the diffable data sour...
View in text
Excerpt 8
iPad user can attach a pointing device, such as a mouse or trackpad; your app can respond to and manipulate the onscreen cursor. If an external keyboard is a...
View in text
Tags
AI categories
ProgrammingMobileSoftware
ISBN: 1492092177
Publisher: O'Reilly Media
Publish Year: 2021
Language: English
Pages: 1256
File Format: PDF
File Size: 13.2 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…