iOS Recipes: Tips and Tricks for Awesome iPhone and iPad Apps docx

226 674 0
iOS Recipes: Tips and Tricks for Awesome iPhone and iPad Apps docx

Đ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

[...]... is usually fine for most iPhone apps iPad apps, on the other hand, are often expected to work in both portrait and landscape modes Because UIViewController provides autorotation behavior for free and PRPSplashScreen inherits from UIViewController, supporting multiple orientations is fairly simple We’ll start by creating an iPad- specific subclass of PRPSplashScreen that adds support for all orientations... tempted to copy and paste the solutions into your project without taking the time to understand them It’s always great to save time by writing less code, but it’s just as great to think and learn about how you saved that time and how you can save more of it moving forward If you are familiar with the iOS SDK and are looking to improve the quality and efficiency of your apps, then this book is for you We... cast of reviewers for this book, and they all deserve recognition for giving us even a tiny bit of their incredibly valuable time Colin Barrett, Mike Clark, Michael Hay, Daniel Steinberg, Justin Williams, and Marcus Zarra were generous, forthcoming, and motivated in helping us make this book as good as it could be The feedback we received over email, Twitter, iChat, lunches, and the forums at PragProg.com... iOS without all hands on deck at all times Although Apple made this book possible, Dave, Andy, Susannah, and the rest of the PragProg staff made it reality Our editor, Jill Steinberg, has been a truly fearless and patient leader while I ran off to day jobs and other distractions Writing a book has always been a personal goal of mine, and I am pleased to have done it so early in life Thank you all for. .. friends and family for supporting me through this journey My wonderful wife and son are the real reason I do anything This indie developer gig ain’t bad, but it doesn’t come close to being a husband or a dad report erratum • discuss • xvi Paul Warren I’d like to add my appreciation for the work of the wonderful people at Apple for building this amazing platform that is our daily playground Also to Jill and. .. team at PragProg.com for providing a delightfully nurturing experience And to our extraordinary community of developers who share and encourage in equal measure The phrase “What do you think of this?” will no doubt haunt the dreams of my beautiful wife and daughters, who showed remarkable patience with a fledgling author in the house For that, and for filling my life with the sounds and love of an amazingly... more information about the book and interact in the following ways: • Access the full source code for all the sample programs used in this book • Participate in a discussion forum with other readers, iOS developers, and the authors • Help improve the book by reporting errata, including content suggestions and typos Note: If you’re reading the ebook, you can also click the gray-green rectangle before... presentModalViewController:splashScreen animated:NO]; [self.window makeKeyAndVisible]; return YES; } The rest of the initialization code is identical to the iPhone variant Run BasicSplashScreen for the iPad, and observe the seamless transition in both portrait and landscape modes, as you can see in Figure 4, Multiple orientations on iPad, on page 8 We’ve now produced an easily reusable basic transition... left is to supply a new splash image When supporting multiple launch orientations, you supply both portrait and landscape variants of your default image, and UIKit chooses the right one for you However, your code has no way of knowing which image was used and therefore can’t choose the right one for your splash screen view We could detect the device orientation from UIDevice or the status bar orientation... this point Thank you all for your contributions to this book Matt Drance You don’t write a book like this unless you love the subject This book’s subject was born from the tireless effort of hundreds of gifted and passionate people in Cupertino over the better part of the past decade I must thank my many friends and former colleagues at Apple for creating this wonderful platform: engineers, product . all times. ➤ Mike Clark Founder, Clarkware iOS Recipes Tips and Tricks for Awesome iPhone and iPad Apps Matt Drance Paul Warren The Pragmatic Bookshelf Dallas,. Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the

Ngày đăng: 06/03/2014, 08:21

Từ khóa liên quan

Mục lục

  • Cover

  • Table of Contents

  • Foreword

  • Introduction

    • Formatting and Syntax

    • Categories

    • Synthesized Instance Variables

    • Private Class Extensions

    • Cleanup in -dealloc

    • Blocks vs. Delegation

    • Online Resources

    • Acknowledgments

      • Matt Drance

      • Paul Warren

      • 1. UI Recipes

        • Recipe 1. Add a Basic Splash Screen Transition

        • Recipe 2. Stylize Your Splash Screen Transition

        • Recipe 3. Animate a Custom Notification View

        • Recipe 4. Create Reusable Toggle Buttons

        • Recipe 5. Form Rounded Views with Textured Colors

        • Recipe 6. Put Together a Reusable Web View

        • Recipe 7. Customize Sliders and Progress Views

        • Recipe 8. Shape a Custom Gesture Recognizer

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

Tài liệu liên quan