Tài liệu Advanced iOS 4 Programming: Developing Mobile pptx

722 3.1K 0
Tài liệu Advanced iOS 4 Programming: Developing Mobile pptx

Đ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

[...]... Multithreaded Downloads application 17 .4. 2 Asynchronous networking 17.5 Push Notification 17.5.1 Configuring push notification on the server 17.5.2 Configuring the client 17.5.3 Coding the client 17.5 .4 Coding the server 17.6 Local Notification 17.7 Large Downloads and Uploads 17.8 Sending Email 17.9 Summary Exercises 46 9 46 9 47 0 47 1 47 1 47 2 47 5 47 7 47 7 47 9 48 4 48 4 49 0 49 3 49 6 49 7 49 7 49 9 502 503 x Contents 18 Working...Contents 14. 7 Accessing the Proximity Sensor 14. 7.1 Enabling proximity monitoring 14. 7.2 Subscribing to proximity change notification 14. 7.3 Retrieving the proximity state 14. 8 Summary Exercises ix 43 5 43 5 43 6 43 6 43 7 43 7 15 Internationalization 15.1 String Localization 15.2 Date Formatting 15.3 Number Formatting 15 .4 Sorted List of Countries 15.5 Summary Exercises 43 9 43 9 44 5 44 8 45 0 45 1 45 1 16 Custom... 592 593 593 24 Developing for the iPad 24. 1 The Cities App: Iteration 1 24. 1.1 The application delegate class 24. 1.2 The CitiesViewController class 24. 1.3 The StatesViewController class 24. 1 .4 Creating the UI 24. 1.5 Wrapping it up 24. 2 The Cities App: Iteration 2 24. 2.1 Initializing the popover view controller with a navigation controller 24. 2.2 Showing the popover 24. 2.3 Wrapping it up 24. 3 Split View... delegate class F.1 .4 Building the UI F.2 Toolbar Application F.2.1 Writing code F.2.2 Building the UI F.2.3 Putting it together 643 643 643 643 646 647 661 661 663 669 References and Bibliography 671 Index 673 Preface Welcome to Advanced iOS 4 Programming, a text that targets the development of mobile applications on devices (such as the iPhone, iPad, and iPod touch) running the iOS 4 operating system... Configurations D .4 Using Frameworks 623 623 623 626 629 Appendix E Unit Testing E.1 Adding a Unit Test Target E.2 Adapting to Foundation 633 633 6 34 Contents E.3 E .4 E.5 E.6 The Model Writing Unit Tests for the Employee Class E .4. 1 The setUp and tearDown methods E .4. 2 Testing for equality E .4. 3 Testing for nullity Adding a Build Dependency Running the Tests xiii 636 638 639 640 640 641 641 Appendix F... Progress Alert View 16 .4 Summary Exercises 45 3 45 3 45 7 46 2 46 7 46 7 17 Advanced Networking 17.1 Determining Network Connectivity 17.1.1 Determining network connectivity via EDGE or GPRS 17.1.2 Determining network connectivity in general 17.1.3 Determining network connectivity via Wi-Fi 17.2 Uploading Multimedia Content 17.3 Computing MD5 Hash Value 17 .4 Multithreaded Downloads 17 .4. 1 The Multithreaded... class 19.6.2 Main pieces 19.7 Summary Exercises 525 525 525 526 526 527 527 527 528 531 536 536 537 537 539 540 540 543 547 548 20 Undo Management 20.1 Understanding Undo Management 20.1.1 Basic idea 549 549 549 Contents 20.1.2 Creating an undo manager 20.1.3 Registering an undo operation 20.1 .4 Hooking into the undo management mechanism 20.1.5 Enabling shake-to-edit behavior 20.2 Detailed Example 20.2.1... controller 24. 2.2 Showing the popover 24. 2.3 Wrapping it up 24. 3 Split View Controller 24. 3.1 An example of the split view controller 24. 3.2 Dissecting the split view controller 24. 4 Modal View Controller Presentation Styles 24. 5 Summary Exercises 595 595 595 596 598 600 6 04 6 04 605 607 607 608 608 610 612 612 6 14 Appendix A Saving and Restoring App State 615 Appendix B Invoking External Applications... 22.2 .4 Monitoring the feed and disseminating the updates 22.3 Showing a Screen Shot of the Last Session 22 .4 The TableView Controller 22.5 Summary Exercises 571 571 572 573 5 74 5 74 575 575 577 579 580 5 84 5 84 xii Contents 23 Peer-to-Peer Communication 23.1 Basic Chat Application 23.1.1 Peer discovery and connection establishment 23.1.2 Creating the session 23.1.3 Setting up a data-receive handler 23.1 .4. .. 515 515 517 518 520 522 523 5 24 19 Core Data 19.1 Core Data Application Components 19.2 Key Players 19.2.1 Entity 19.2.2 Managed object model 19.2.3 Persistent store coordinator 19.2 .4 Managed object context 19.2.5 Managed object 19.2.6 The Core Data wrapper class 19.3 Using the Modeling Tool 19 .4 Create, Read, Update, and Delete (CRUD) 19 .4. 1 Create 19 .4. 2 Delete 19 .4. 3 Read and update 19.5 Working . example 41 4 14. 2 Working with Audio 41 8 14. 2.1 Playing short audio files 41 8 14. 2.2 Recording audio files 42 0 14. 2.3 Playing audio files 42 1 14. 2 .4 Using. controller 42 2 14. 2.5 Searching the iPod Library 42 4 14. 3 Playing Video 42 7 14. 4 Accessing Device Information 42 8 14. 5 Taking and Selecting Pictures 42 9 14. 5.1

Ngày đăng: 16/02/2014, 00:20

Từ khóa liên quan

Mục lục

  • Advanced iOS 4 Programming

    • Contents

    • Preface

    • Publisher’s Acknowledgments

    • 1 Getting Started

      • 1.1 iOS SDK and IDE Basics

        • 1.1.1 Obtaining and installing the SDK

        • 1.1.2 Creating a project

        • 1.1.3 Familiarizing yourself with the IDE

        • 1.1.4 Looking closely at the generated code

        • 1.2 Creating Interfaces

          • 1.2.1 Interface Builder

          • 1.2.2 Revising the application

          • 1.3 Using the Debugger

          • 1.4 Getting More Information

          • 1.5 Summary

          • Exercises

          • 2 Objective-C and Cocoa

            • 2.1 Classes

              • 2.1.1 Class declaration

              • 2.1.2 How do I use other declarations?

              • 2.1.3 Class definition

              • 2.1.4 Method invocation and definition

              • 2.1.5 Important types

              • 2.1.6 Important Cocoa classes

              • 2.2 Memory Management

                • 2.2.1 Creating and deallocating objects

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

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

Tài liệu liên quan