Programming iOS 12 - Matt Neuburg.pdf
(
12861 KB
)
Pobierz
Programming
iOS 12
DIVE DEEP INTO VIEWS, VIEW CONTROLLERS, AND FRAMEWORKS
Matt Neuburg
2
2, 4.
S 1 ift
iO w
rs d S
ve an
Co 0,
e1
od
Xc
NINTH EDITION
Programming iOS 12
Matt Neuburg
Boston
Programming iOS 12, Ninth Edition
by Matt Neuburg
Copyright © 2019 Matt Neuburg. All rights reserved.
Printed in the United States of America.
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/safari). For more information, contact our corporate/insti‐
tutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editor:
Rachel Roumeliotis
Production Editor:
Melanie Yarbrough
Proofreader:
O’Reilly Production Services
Indexer:
Matt Neuburg
May 2011:
March 2012:
March 2013:
December 2013:
December 2014:
November 2015:
November 2016:
December 2017:
October 2018:
First Edition
Second Edition
Third Edition
Fourth Edition
Fifth Edition
Sixth Edition
Seventh Edition
Eighth Edition
Ninth Edition
Cover Designer:
Randy Comer
Interior Designer:
David Futato
Illustrator:
Matt Neuburg
Revision History for the Ninth Edition:
2018-10-04:
First release
See
http://oreilly.com/catalog/errata.csp?isbn=9781492044635
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Programming iOS 12,
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 trade‐
mark 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-04463-5
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Part I.
Views
4
4
6
7
7
8
11
12
13
18
21
22
24
25
27
29
32
33
39
42
47
49
52
53
iii
1. Views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
The Window and Root View
How an App Launches
Subclassing UIWindow
Referring to the Window
Experimenting with Views
Subview and Superview
Visibility and Opacity
Frame
Bounds and Center
Transform
The View Environment
Window Coordinates and Screen Coordinates
Trait Collections and Size Classes
Layout
Autoresizing
Autolayout and Constraints
Implicit Autoresizing Constraints
Creating Constraints in Code
Constraints as Objects
Margins and Guides
Intrinsic Content Size and Alignment Rects
Stack Views
Internationalization
Mistakes with Constraints
Plik z chomika:
jonedave3
Inne pliki z tego folderu:
Paula Deen Celebrates! - Paula Deen.epub
(14603 KB)
Pacific Northwests Best Trips 3.epub
(92587 KB)
P. G. Bell - The Train to Impossible Places.epub
(19719 KB)
P. R. Halmos - A Hilbert Space Problem Book (1974) [978-1-4615-9976-0].pdf
(26003 KB)
P Finnigan - Oracle Incident Response and Forensics.pdf
(2399 KB)
Inne foldery tego chomika:
@other-lang
@packed
0
1
2-1
Zgłoś jeśli
naruszono regulamin