pragmatic bookshelf publishing ios sdk development (2012)

286 499 0
pragmatic bookshelf publishing ios sdk development (2012)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... and source code management We’re also adopting modern iOS development practices, such as using Objective-C properties exclusively instead of using traditional instance variables and getting private methods out of public header files Our goal is for this book to serve as a prerequisite for all the other iOS titles from the Pragmatic Bookshelf, such as iOS Recipes: Tips and Tricks for Awesome iPhone and... to iOS 6 With all the advances in the tools and frameworks in iOS 6, it’s a great time to be starting our journey into iOS app development In fact, we should tell all our friends what we’re up to In this first chapter, that’s exactly what we’re going to do For our first example, we’re going to build an app to send out a tweet announcing that we’ve written our first iOS app We’ll get set up with the SDK. .. develop iOS 6 apps, we use Xcode 4 While “Xcode” generally refers to the integrated development environment (IDE) (in which we develop code and user interfaces and run a build process to generate the actual apps), it can also mean the entire collection of material we’ll need to build iOS applications When we download Xcode, we get not only the Xcode app itself but also the software development kits (SDKs)... SLServiceTypeTwitter]; [tweetVC setInitialText: @"I just finished the first project in iOS SDK Development #pragsios"]; [self presentViewController:tweetVC animated:YES completion:NULL]; } else { NSLog (@"Can't send tweet"); } 5 10 - } We’ve replaced our one-line C logging statement with several lines of ObjectiveC, which is what iOS uses for most of its high-level APIs, such as UIKit and the Social framework... getting Xcode from the Mac App Store, and by the time we’re done we’ll be ready to upload our own apps to the iOS App Store Here’s a road map to the journey: • Chapter 1, Tweetings and Welcome to iOS 6, on page 1, starts by downloading and installing the SDK and beginning work on a first app, which uses iOS 6’s new Social framework to send a tweet telling the world that our journey is underway We’ll use Xcode’s... Technical Requirements The technical requirements for iOS development, in general terms, are pretty simple: a reasonably new Mac, running the most-recent production version of Mac OS X The specific version numbers increment ever upward; check out Xcode on the Mac App Store for the latest requirements For this edition, our baseline is Xcode 4.5 and the iOS 6 SDK (included with Xcode 4.5), running on Mountain... platform—between Xcode 4, iOS 6, and the iPad—we decided that so much had changed that we would be better off starting off fresh This freed us to embrace everything that’s new, making a complete cut with the past and writing a truly up-to-date book And there’s so much that’s new! The radically overhauled Xcode 4 is the first version of the development tool that’s truly built for iOS development, rather report... like the A5 comes a need for practical concurrent programming, something the iOS SDK answers with Grand Central Dispatch, a technology that allows programmers to divvy up small bits of code and data as “blocks” and let the system decide how best to run them In fact, it’s possible to have too much of a good thing, and the iOS 6 SDK is a good example In our first book, we worked to present most of the interesting... millions of units, and changed its name from iPhone OS to iOS to better reflect its multiple uses and perhaps to leave the door open to future devices The SDK has also grown in breadth and depth, adding new features, new frameworks, and new tools Since the first book, Apple has changed compilers and has radically overhauled Xcode, the primary iOS development environment As we did our day-to-day work with... variable tweetVC, which gets the *character, because it, like all Objective-C objects, is a C pointer On lines 6–7, we set the initial text of the tweet to "I just finished the first project in iOS SDK Development #pragsios" by calling the setInitialText: method on tweetVC The leading @ identifies the string as an Objective-C NSString as opposed to a typical null-terminated C string This is all we need to . more qualified to teach you the ins and outs of Apple’s iOS SDK than Bill Dudney and Chris Adamson. Their all-new, updated book, iOS SDK Development, is a must-read, plain and simple. ➤ John C (like me) that are getting sick of PHP and .NET. ➤ Joel Clermont iOS SDK Development Chris Adamson Bill Dudney The Pragmatic Bookshelf Dallas, Texas • Raleigh, North Carolina Many of the designations. at http://www.last.fm/user/invalidname . From Bill Dudney I’d like to thank the many folks who have been to the Pragmatic iOS Studios ( http://pragmaticstudio.com /ios ). Your questions, insights, and struggles have been an inspiration

Ngày đăng: 24/04/2014, 10:00

Từ khóa liên quan

Mục lục

  • Cover

  • Table of Contents

  • Acknowledgments

    • From Chris Adamson

    • From Bill Dudney

    • From Both of Us

  • Introduction

    • A New Start and a Do-Over

    • So Here's the Plan

    • Online Resources

    • And So It Begins

  • 1. Tweetings and Welcome to iOS 6

    • Tooling Up

    • Our First Project

    • Building Our User Interface

    • Coding the App

    • Tweet, Sweet Success

  • 2. Programming for iOS

    • Introducing Objective-C

    • Methods and Messaging

    • Memory Management

    • Managing an Object's Properties

    • Auto Layout and the iPhone 5

    • The iOS Programming Stack

    • Building Views with UIKit

    • Using the Foundation Classes

    • Internationalization

    • Wrap-Up

  • 3. Asynchronicity and Concurrency

    • Encapsulating Concurrent Code with Blocks

    • Grand Central Dispatch

    • Concurrency and UIKit

    • Sorting with Blocks

    • Wrap-Up

  • 4. View Controllers

    • Practicing MVC

    • Working with a View's Life Cycle

    • Building a Detailed Recipe View

    • Wrap-Up

  • 5. Table Views

    • The UITableView

    • Displaying a List of Recipes

    • Editing a Table

    • Working with Cell Styles

    • Recipe Details

    • Wrap-Up

  • 6. Storyboards and Container Controllers

    • Laying Out Storyboards

    • Using Container Controllers

    • Moving Around with Navigation Controllers

    • Managing View Controllers in Navigation Controllers

    • Transferring App Control and Data

    • Returning App Control and Data

    • Wrap-Up

  • 7. Documents and iCloud

    • Making Recipes Persist

    • Telling the Recipe Document About Edits

    • Sharing Recipes

    • Opening Shared Recipe Documents

    • Storing Documents in iCloud

    • Wrap-Up

  • 8. Drawing and Animating

    • Drawing Images

    • Drawing Paths

    • Using Shadows

    • Rotating and Animating Images

    • Drawing Shadows

    • Wrap-Up

  • 9. Testing and Fixing Apps

    • Unit Testing

    • Debugging Our App

    • User Interface Testing

    • Testing Performance with Instruments

    • Wrap-Up

  • 10. The App Store and Beyond

    • Protecting Our Code with Source Control

    • Running on the Device

    • Submitting Apps for Review

    • After We Ship

    • Onward!

  • A1. Wait! I Forgot (or Never Learned) C!

    • C: The Basics

    • Pointers

    • Dynamic Memory Management

  • Bibliography

  • Index

    • – SYMBOLS –

    • – A –

    • – B –

    • – C –

    • – D –

    • – E –

    • – F –

    • – G –

    • – H –

    • – I –

    • – J –

    • – K –

    • – L –

    • – M –

    • – N –

    • – O –

    • – P –

    • – Q –

    • – R –

    • – S –

    • – T –

    • – U –

    • – V –

    • – W –

    • – X –

    • – Z –

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan