ios_6_programming_cookbook.pdf
(
40708 KB
)
Pobierz
www.it-ebooks.info
www.it-ebooks.info
iOS 6 Programming Cookbook
Vandad Nahavandipoor
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Sebastopol
•
Tokyo
www.it-ebooks.info
iOS 6 Programming Cookbook
by Vandad Nahavandipoor
Copyright © 2013 Vandad Nahavandipoor. 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://my.safaribooksonline.com). For more information, contact our
corporate/institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editors:
Andy Oram and Rachel Roumeliotis
Production Editor:
Rachel Steely
Copyeditor:
Jasmine Kwityn
Proofreader:
Jason Schneiderman
December 2012:
First Edition.
Indexer:
Bob Pfahler
Cover Designer:
Karen Montgomery
Interior Designer:
David Futato
Illustrator:
Rebecca Demarest
Revision History for the First Edition:
2012-11-19
First release
See
http://oreilly.com/catalog/errata.csp?isbn=9781449342753
for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc.
iOS 6 Programming Cookbook,
image of a shrew tenrec, 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 every precaution has been taken in the preparation of this book, the publisher and author assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-34275-3
[LSI]
1353339479
www.it-ebooks.info
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. The Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
1.10
1.11
1.12
1.13
1.14
1.15
1.16
1.17
1.18
1.19
1.20
1.21
1.22
1.23
1.24
1.25
1.26
1.27
1.28
Creating a Simple iOS App in Xcode
Understanding Interface Builder
Compiling iOS Apps
Running iOS Apps on the Simulator
Running iOS Apps on iOS Devices
Packaging iOS Apps for Distribution
Declaring Variables in Objective-C
Allocating and Making Use of Strings
Comparing Values in Objective-C with an if Statement
Implementing Loops with for Statements
Implementing while Loops
Creating Custom Classes
Defining Functionality for Classes
Defining Two or More Methods with the Same Name
Allocating and Initializing Objects
Adding Properties to Classes
Moving from Manual Reference Counting to Automatic Reference
Counting
Typecasting with Automatic Reference Counting
Delegating Tasks with Protocols
Determining Whether Instance or Class Methods Are Available
Determining Whether a Class Is Available at Runtime
Allocating and Making Use of Numbers
Allocating and Making Use of Arrays
Allocating and Making Use of Dictionaries
Allocating and Making Use of Sets
Creating Bundles
Loading Data from the Main Bundle
Loading Data from Other Bundles
2
5
7
11
12
15
20
23
27
30
32
35
38
43
46
48
52
57
60
66
69
70
72
77
80
83
84
88
iii
www.it-ebooks.info
Plik z chomika:
jacek_040
Inne pliki z tego folderu:
sharepoint_2013_users_guide_4th_edition.pdf
(51929 KB)
sharepoint_server_2010_administration_24_hour_trainer.pdf
(48210 KB)
solidworks_2007_bible.pdf
(42826 KB)
solidworks_2009_bible.pdf
(46173 KB)
sql_server_2012_data_integration_recipes.pdf
(50907 KB)
Inne foldery tego chomika:
- komputer
! HTML CSS XHTML
_ Informatyka. English
_ Informatyka. Kryptologia
_ Informatyka. Prolog
Zgłoś jeśli
naruszono regulamin