iOS Core Animation: Advanced Techniques

Book description

Core Animation is the technology underlying Apple’s iOS user interface. By unleashing the full power of Core Animation, you can enhance your app with impressive 2D and 3D visual effects and create exciting and unique new interfaces.

¿

In this in-depth guide, iOS developer Nick Lockwood takes you step-by-step through the Core Animation framework, building up your understanding through sample code and diagrams together with comprehensive explanations and helpful tips. Lockwood demystifies the Core Animation APIs, and teaches you how to make use of

  • Layers and views, software drawing and hardware compositing

  • Layer geometry, hit testing and clipping

  • Layer effects, transforms and 3D interfaces

  • Video playback, text, tiled images, OpenGL, particles and reflections

  • Implicit and explicit animations

  • Property animations, keyframes and transitions

  • Easing, frame-by-frame animation and physics

  • Performance tuning and much, much more!

  • Approximately 356 pages.

    www.informit.com/aw

    Table of contents

    1. About This eBook
    2. Title Page
    3. Copyright Page
    4. Dedication Page
    5. Contents at a Glance
    6. Table of Contents
    7. About the Author
    8. Acknowledgments
    9. Editor’s Note: We Want to Hear from You!
    10. Reader Services
    11. Preface
      1. Audience and Material
      2. Book Structure
      3. Before We Begin
    12. I: The Layer Beneath
      1. 1. The Layer Tree
        1. Layers and Views
        2. Layer Capabilities
        3. Working with Layers
        4. Summary
      2. 2. The Backing Image
        1. The contents Image
        2. Custom Drawing
        3. Summary
      3. 3. Layer Geometry
        1. Layout
        2. anchorPoint
        3. Coordinate Systems
        4. Hit Testing
        5. Automatic Layout
        6. Summary
      4. 4. Visual Effects
        1. Rounded Corners
        2. Layer Borders
        3. Drop Shadows
        4. Layer Masking
        5. Scaling Filters
        6. Group Opacity
        7. Summary
      5. 5. Transforms
        1. Affine Transforms
        2. 3D Transforms
        3. Solid Objects
        4. Summary
      6. 6. Specialized Layers
        1. CAShapeLayer
        2. CATextLayer
        3. CATransformLayer
        4. CAGradientLayer
        5. CAReplicatorLayer
        6. CAScrollLayer
        7. CATiledLayer
        8. CAEmitterLayer
        9. CAEAGLLayer
        10. AVPlayerLayer
        11. Summary
    13. II: Setting Things in Motion
      1. 7. Implicit Animations
        1. Transactions
        2. Completion Blocks
        3. Layer Actions
        4. Presentation Versus Model
        5. Summary
      2. 8. Explicit Animations
        1. Property Animations
        2. Animation Groups
        3. Transitions
        4. Canceling an Animation in Progress
        5. Summary
      3. 9. Layer Time
        1. The CAMediaTiming Protocol
        2. Hierarchical Time
        3. Manual Animation
        4. Summary
      4. 10. Easing
        1. Animation Velocity
        2. Custom Easing Functions
        3. Summary
      5. 11. Timer-Based Animation
        1. Frame Timing
        2. Physical Simulation
        3. Summary
    14. III: The Performance of a Lifetime
      1. 12. Tuning for Speed
        1. CPU Versus GPU
        2. Measure, Don’t Guess
        3. Instruments
        4. A Worked Example
        5. Summary
      2. 13. Efficient Drawing
        1. Software Drawing
        2. Vector Graphics
        3. Dirty Rectangles
        4. Asynchronous Drawing
        5. Summary
      3. 14. Image IO
        1. Loading and Latency
        2. Caching
        3. File Format
        4. Summary
      4. 15. Layer Performance
        1. Inexplicit Drawing
        2. Offscreen Rendering
        3. Blending and Overdraw
        4. Reducing Layer Count
        5. Summary
    15. Index
    16. Where Are the Companion Content Files?

    Product information

    • Title: iOS Core Animation: Advanced Techniques
    • Author(s): Nick Lockwood
    • Release date: August 2013
    • Publisher(s): Addison-Wesley Professional
    • ISBN: 9780133440744