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

a0187 wrox beginning ipad application development jun 201 morebook vn 8867

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 (835.1 KB, 7 trang )

Lee

Learn to develop successful—
and profitable—iPad applications

Explains the various types of iPad applications supported by
the iPhone SDK



Discusses the various types of screen orientations and ways to
handle rotations



Covers the new Gesture Recognizers available in this release
of the iPhone SDK



Covers the new Split View-based Application project type



Zeroes in on database storage using SQLite3



Examines Web Services, Bluetooth programming, and Bonjour
programming




Covers Apple Push Notification Services programming

Join our Programmer to
Programmer forums to ask
and answer programming
questions about this book,
join discussions on the
hottest topics in the industry,
and connect with fellow
programmers from around
the world.

Code Downloads
Take advantage of free code
samples from this book, as
well as code samples from
hundreds of other books, all
ready to use.

Read More

Wei-Meng Lee is a technologist and founder of Developer Learning Solutions, a
technology company specializing in hands-on training in the latest Microsoft and
Apple technologies. He is also the author of Beginning iPhone SDK Programming
with Objective-C and writes frequently for online publications.
Wrox Beginning guides are crafted to make learning programming languages
and technologies easier than you think, providing a structured, tutorial format
that will guide you through all the techniques involved.


Programming / Mac & iPhone

Programmer
Forums

$34.99 USA
$41.99 CAN

Find articles, ebooks, sample
chapters and tables of contents
for hundreds of books, and
more reference resources on
programming topics that matter
to you.





wrox.com

iPad Application Development

Beginning iPad Application Development:

Wrox Programmer to Programmer™

Beginning


Eager to start developing applications for the iPad? Then look no
further than the book in your hands. This comprehensive, hands-on
approach to iPad development walks you through all the necessary
tools and skills required for successful iPad app programming. You’ll
first familiarize yourself with the iPhone® SDK, Xcode®, and Interface
Builder tools, all of which provide a solid foundation for developing
apps. You’ll then explore the features and syntax of the Objective-C®
language, which is essential for creating most iPad apps. Plus, you’ll
discover how to best implement the many features of the iPhone
SDK into your apps so that you can deploy your applications to
the Apple AppStore.

Join the discussion @ p2p.wrox.com

Beginning


iPad

Application Development
Wei-Meng Lee


641651ffirs.indd 4

4/12/10 4:23:53 PM


Related Wrox Books
Beginning iPhone SDK Programming with Objective-C


Programmer to Programmer



Get more out of
wrox.com

ISBN: 978-0-470-50097-2
This information-packed book presents a complete introduction to the iPhone SDK and the Xcode tools, as well as the Objective-C
language that is necessary to create native iPhone applications. Solid coverage and real-world examples walk you through the
process for developing mobile applications for the iPhone that can then be distributed through Apple’s iTunes Application store.

Beginning Mac OS X Snow Leopard Programming
ISBN: 978-0-470-57752-3
This book serves as a solid guide to getting started with Mac OS X programming. You will learn how to use the free software
development tools that come with all Mac OS X systems to efficiently start writing programs on Mac OS X Snow Leopard. The
author shows you how to use all of the programming languages together in order to create seamless applications.

Professional Android 2 Application Development
ISBN: 978-0-470-56552-0
Written by an Android authority, this resource shows you how to leverage the features of Android 2 to enhance existing products
or create innovative new ones. The author walks you through a series of sample projects that introduces you to Android’s new
features and techniques.

Professional Xcode 3

Interact

Join the Community


Take an active role online by participating in our
P2P forums @ p2p.wrox.com

Sign up for our free monthly newsletter at
newsletter.wrox.com

ISBN: 978-0-470-52522-7
The steady increase in sales of Apple computers has triggered a strong interest in gaining a thorough understanding of Xcode and
its tools and what they have to offer. This book provides you with an inside look at the array of Xcode tools from top to bottom.
You’ll go beyond the basics and dive into such in-depth topics as installing the latest version of Xcode tools, customizing the look
and behavior of Xcode, creating and managing projects, using the built-in class browser to model complex applications and structures,
and more. With this book, you’ll be able to take full advantage of the range of tools included with Xcode.

Safari and WebKit Development for iPhone OS 3.0

Wrox Online Library

Browse

Hundreds of our books are available online
through Books24x7.com

Ready for more Wrox? We have books and
e-books available on .NET, SQL Server, Java,
XML, Visual Basic, C#/ C++, and much more!

Wrox Blox
Download short informational pieces and code
to keep you up to date and out of trouble!


Contact Us.
We always like to get feedback from our readers. Have a book idea?
Need community support? Let us know by e-mailing

ISBN: 978-0-470-54966-7
With the unparalleled success of iPhone and iPod touch, iPhone OS 3.0 has emerged as a compelling platform for which vast
numbers of web developers are designing and building web-based mobile applications. This book explores the Safari and WebKit
development platform that is built into iPhone OS 3.0 and takes you through the process of creating an iPhone web application
from the ground up. You’ll learn how to use existing open source frameworks to speed up your development time, imitate qualities
of built-in Apple apps, cache data locally and even run in offline mode, and more. Whether you’re eager to build new web applications
for iPhone OS 3.0 or optimize existing web sites for this platform, you have everything you need to do so within this book.


Beginning
iPad™ Application Development
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv

⊲⊲ Part IGetting Started
Chapter 1

Getting Started with iPad Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Chapter 2

Write Your First Hello World! Application . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Chapter 3

Views, Outlets, and Actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45


Chapter 4

View Controllers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

Chapter 5

Keyboard Inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

Chapter 6

Screen Rotations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

⊲⊲ Part II

Displaying and Persisting Data?

Chapter 7

Using the Table View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

Chapter 8

Application Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233

Chapter 9

File Handling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253

Chapter 10 Database Storage Using SQLite3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269


⊲⊲ Part III advanced ipad programming techniques
Chapter 11

Simple Animations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

Chapter 12

Recognizing Gestures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

Chapter 13

Accessing the Accelerometer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349

⊲⊲ Part IV Network Programming techniques
Chapter 14

Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365

Chapter 15

Bluetooth Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385

Chapter 16

Bonjour Programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405

Chapter 17

Apple Push Notification Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419


Chapter 18

Displaying Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
Continues

641651ffirs.indd 1

4/12/10 4:23:52 PM


⊲⊲ Part V Appendices
Appendix A Answers to Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
Appendix B Getting Around in Xcode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
Appendix C Getting Around in Interface Builder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
Appendix D Crash Course in Objective-C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545

641651ffirs.indd 2

4/12/10 4:23:52 PM


Related Wrox Books
Beginning iPhone SDK Programming with Objective-C

Programmer to Programmer




Get more out of
wrox.com

ISBN: 978-0-470-50097-2
This information-packed book presents a complete introduction to the iPhone SDK and the Xcode tools, as well as the Objective-C
language that is necessary to create native iPhone applications. Solid coverage and real-world examples walk you through the
process for developing mobile applications for the iPhone that can then be distributed through Apple’s iTunes Application store.

Beginning Mac OS X Snow Leopard Programming
ISBN: 978-0-470-57752-3
This book serves as a solid guide to getting started with Mac OS X programming. You will learn how to use the free software
development tools that come with all Mac OS X systems to efficiently start writing programs on Mac OS X Snow Leopard. The
author shows you how to use all of the programming languages together in order to create seamless applications.

Professional Android 2 Application Development
ISBN: 978-0-470-56552-0
Written by an Android authority, this resource shows you how to leverage the features of Android 2 to enhance existing products
or create innovative new ones. The author walks you through a series of sample projects that introduces you to Android’s new
features and techniques.

Professional Xcode 3

Interact

Join the Community

Take an active role online by participating in our
P2P forums @ p2p.wrox.com

Sign up for our free monthly newsletter at

newsletter.wrox.com

ISBN: 978-0-470-52522-7
The steady increase in sales of Apple computers has triggered a strong interest in gaining a thorough understanding of Xcode and
its tools and what they have to offer. This book provides you with an inside look at the array of Xcode tools from top to bottom.
You’ll go beyond the basics and dive into such in-depth topics as installing the latest version of Xcode tools, customizing the look
and behavior of Xcode, creating and managing projects, using the built-in class browser to model complex applications and structures,
and more. With this book, you’ll be able to take full advantage of the range of tools included with Xcode.

Safari and WebKit Development for iPhone OS 3.0

Wrox Online Library

Browse

Hundreds of our books are available online
through Books24x7.com

Ready for more Wrox? We have books and
e-books available on .NET, SQL Server, Java,
XML, Visual Basic, C#/ C++, and much more!

Wrox Blox
Download short informational pieces and code
to keep you up to date and out of trouble!

Contact Us.
We always like to get feedback from our readers. Have a book idea?
Need community support? Let us know by e-mailing


Prepared for SUSAN ROERS/ email0 Order number0 65259214 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of
Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy.

ISBN: 978-0-470-54966-7
With the unparalleled success of iPhone and iPod touch, iPhone OS 3.0 has emerged as a compelling platform for which vast
numbers of web developers are designing and building web-based mobile applications. This book explores the Safari and WebKit
development platform that is built into iPhone OS 3.0 and takes you through the process of creating an iPhone web application
from the ground up. You’ll learn how to use existing open source frameworks to speed up your development time, imitate qualities
of built-in Apple apps, cache data locally and even run in offline mode, and more. Whether you’re eager to build new web applications
for iPhone OS 3.0 or optimize existing web sites for this platform, you have everything you need to do so within this book.


Lee

Learn to develop successful—
and profitable—iPad applications

Explains the various types of iPad applications supported by
the iPhone SDK



Discusses the various types of screen orientations and ways to
handle rotations



Covers the new Gesture Recognizers available in this release
of the iPhone SDK




Covers the new Split View-based Application project type



Zeroes in on database storage using SQLite3



Examines Web Services, Bluetooth programming, and Bonjour
programming



Covers Apple Push Notification Services programming

Join our Programmer to
Programmer forums to ask
and answer programming
questions about this book,
join discussions on the
hottest topics in the industry,
and connect with fellow
programmers from around
the world.

Code Downloads
Take advantage of free code
samples from this book, as

well as code samples from
hundreds of other books, all
ready to use.

Read More

Wei-Meng Lee is a technologist and founder of Developer Learning Solutions, a
technology company specializing in hands-on training in the latest Microsoft and
Apple technologies. He is also the author of Beginning iPhone SDK Programming
with Objective-C and writes frequently for online publications.
Wrox Beginning guides are crafted to make learning programming languages
and technologies easier than you think, providing a structured, tutorial format
that will guide you through all the techniques involved.

Programming / Mac & iPhone

Programmer
Forums

$34.99 USA
$41.99 CAN

Find articles, ebooks, sample
chapters and tables of contents
for hundreds of books, and
more reference resources on
programming topics that matter
to you.






wrox.com

iPad Application Development

Beginning iPad Application Development:

Wrox Programmer to Programmer™

Beginning

Eager to start developing applications for the iPad? Then look no
further than the book in your hands. This comprehensive, hands-on
approach to iPad development walks you through all the necessary
tools and skills required for successful iPad app programming. You’ll
first familiarize yourself with the iPhone® SDK, Xcode®, and Interface
Builder tools, all of which provide a solid foundation for developing
apps. You’ll then explore the features and syntax of the Objective-C®
language, which is essential for creating most iPad apps. Plus, you’ll
discover how to best implement the many features of the iPhone
SDK into your apps so that you can deploy your applications to
the Apple AppStore.

Join the discussion @ p2p.wrox.com

Beginning



iPad

Application Development
Wei-Meng Lee



×