Tải bản đầy đủ (.pdf) (7 trang)

1617291269 ios 7722

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (239.72 KB, 7 trang )

Bear Cahill

Covers iOS 6

Includes 98 Techniques

MANNING


iOS in Practice



iOS in Practice
BEAR CAHILL

MANNING
SHELTER ISLAND


For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 261
Shelter Island, NY 11964
Email:

©2013 by Manning Publications Co. All rights reserved.



No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form or by means electronic, mechanical, photocopying, or otherwise, without prior written
permission of the publisher.

Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.

Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books
are printed on paper that is at least 15 percent recycled and processed without the use of
elemental chlorine.

Manning Publications Co.
20 Baldwin Road
PO Box 261
Shelter Island, NY 11964

Development editor:
Technical proofreader:
Copyeditors:
Proofreaders:
Typesetter:
Cover designer:

ISBN 9781617291265
Printed in the United States of America

1 2 3 4 5 6 7 8 9 10 – MAL – 17 16 15 14 13 12

Scott Meyers
James Hatheway
Linda Kern, Benjamin Berg
Katie Tennant, Alyson Brener
Dottie Marsico
Marija Tudor


INDEX

user defaults 98, 107, 118–120
user interface 10, 12, 24, 27
adding a timer 124
adding buttons to a view
36–37
apps that work in iPad and
iPhone/iPod 224–225
background color 30
buttons with big icons 28
design concepts 24–27
for Rock, Paper, Scissors
178–182
games 178–182
intuitive 27
keeping it interesting 26
product definition statement
26
rounded corners 122

settings 122–125
table cell styles 66
table views 133–143
Utilities 5, 11, 16

V
vibrate 127–128
view
adding buttons 36–37
background color 30
deleting and rearranging
table view rows 81–82
rounded corners 122
table view data 80–85
table views 63–68, 133–143
view controllers 11, 27–37,
39–40
See also MVC
view controllers 11, 27–37,
39–40
connecting buttons to actions
17
designing with IB 27–30
detail view controller 144–145
dismissing 49–50
displaying options with
48–49

for camera and photo album
access 46–48

for image picker 109
GKLeaderboardViewController 190
GKMatchmakerViewController 201
only one view 33
presenting modally 48–49
replacing detail view controller 146–147
RootViewController 208
split view controller 214,
218, 224
View-Based Application 116
viewControllerWithRestoration
IdentifierPath 252
viewDidAppear class 53
viewDidAppear method 50
viewDidLoad 234–235, 255
viewDidLoad method 50, 77,
186, 208, 225
viewWillAppear 235
viewWillAppear method 50,
120, 124
detecting shake 128
voice chat 204–205
voiceChatWithName
method 205

283

waiting, activity indicator 57–58
web view 227
WhereIsMyCar application 87,

113
widgets
ImageView 32, 36
Toolbar 32, 36
Worldwide Developer Relations
certificate (WWDR) 263

and CoreData 136
and provisioning profiles
266
Assistant 17, 44, 95
Attributes Inspector 36, 42
Attributes window 25
connecting actions and outlets to code 41–44
Connections Inspector 41
converting for iPad 214–218
creating a new project 8–10
Debug Console 6
declaring actions and outlets
37–41
designing Rock, Paper, Scissors game 178–182
distribution 267–269
downloading 5
Editor 6
Hello World example 8–13
Identity Inspector 65
Inspector 34
Interface Builder 6, 24, 27
Label 11
Navigator 5, 11, 89

Organizer 7
registering for push notifications 164–165
Simulator 10
Size Inspector 30
Storyboard 9–11, 16, 133
Target 10
Toolbar 7
tour of 5–8
user interface design 24–27
Utilities 5, 11, 16
XIB 10, 28, 36–37, 214, 218

X

Z

Xcode 4–13
adding settings to a project
116–118

zooming
maps 91–93
span 92

W


iPHONE/iPAD DEVELOPMENT

iOS IN PRACTICE


SEE INSERT

Bear Cahill

W

hen you are building an iOS app, you want more than
basic concepts—you want real answers to practical
problems. You want iOS in Practice.

This book distills the hard-won experience of iOS developer
Bear Cahill into 98 specific iOS techniques on key topics
including managing data, using media, location awareness, and
many more. And the sample apps are wonderful! As you pull
them apart, you’ll see two things: experienced app development
and creative design savvy in action.

What’s Inside
WhereIsMyCar drives you through maps, CoreLocation, and
camera access.
PlayMyLists tunes in on settings, audio, and shake detection.
Rock, Paper, Scissors explores networking, voice, in-app
purchase, push notification, and invitations.
Examples written for iOS 6 using Xcode 4.5.
Written for readers who know the basics of Objective-C and are
interested in practical app development.

Bear Cahill is an independent iOS developer whose clients include
both large and small companies. He has created or contributed

to numerous popular apps and is a frequent speaker and
presenter. He writes a blog at brainwashinc.com.

To download their free eBook in PDF, ePub, and Kindle formats, owners
of this book should visit manning.com/iOSinPractice

MANNING

$44.99 / Can $47.99

[INCLUDING eBOOK]



The direct path to
getting your app into
the App Store … hands-on
and real-world.



—Jonas Bandi, TechTalk

you’re a web developer
“Ifwanting
to add i to
your repertoire, Bear is the
guide for you.

OS


—Stephen Aument
web and mobile consultant

A quick and easy
“way
to get into
the i mindset.


OS
—Christopher Haupt
Webvanta Inc.



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×