Programming iOS 13 - Matt Neuburg.pdf

(13396 KB) Pobierz
Programming
1
, 5.
13 ft
S wi
iO S
s d
er an
ov ,
C e 11
od
Xc
iOS 13
Dive Deep into Views, View Controllers,
and Frameworks
Matt Neuburg
TENTH EDITION
Dive Deep into Views, View Controllers,
and Frameworks
Programming iOS 13
Matt Neuburg
Boston
Programming iOS 13, Tenth Edition
by Matt Neuburg
Copyright © 2020 Matt Neuburg. All rights reserved.
Printed in Canada.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com). For more information, contact our corporate/institu‐
tional sales department: 800-998-9938 or
corporate@oreilly.com.
Editor:
Rachel Roumeliotis
Production Editor:
Kristen Brown
Proofreader:
O’Reilly Production Services
Indexer:
Matt Neuburg
Cover Designer:
Randy Comer
Interior Designer:
David Futato
Illustrator:
Matt Neuburg
May 2011:
March 2012:
March 2013:
December 2013:
December 2014:
November 2015:
November 2016:
December 2017:
October 2018:
October 2019:
First Edition
Second Edition
Third Edition
Fourth Edition
Fifth Edition
Sixth Edition
Seventh Edition
Eighth Edition
Ninth Edition
Tenth Edition
Revision History for the Tenth Edition:
2019-12-05:
First release
See
http://oreilly.com/catalog/errata.csp?isbn=9781492074618
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Programming iOS 13,
the cover image
of a kingbird, and related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-492-07461-8
[MBP]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Part I.
Views
4
4
6
8
8
9
12
14
15
16
20
24
26
27
29
30
31
32
33
35
38
40
45
47
iii
1. Views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Window and Root View
How an App Launches
App Without a Storyboard
Referring to the Window
Experimenting with Views
Subview and Superview
Color
Visibility and Opacity
Frame
Bounds and Center
Transform
Transform3D
Window Coordinates and Screen Coordinates
Trait Collections
Interface Style
Size Classes
Overriding Trait Collections
Layout
Autoresizing
Autolayout and Constraints
Implicit Autoresizing Constraints
Creating Constraints in Code
Constraints as Objects
Margins and Guides
Zgłoś jeśli naruszono regulamin