SlideShare a Scribd company logo
Starting
Core Animation
What is
     Core Animation?
• Framework for easily creating animated
  user interfaces.
• Tightly integrated with UIKit.
• Animate properties over time.
• Layer based.
Where is Core
     Animation Used?

• Everywhere!
• Navigation controllers, displaying modal
  view controllers, deselecting cells in a table
  view, flipping to an info screen, etc!
UIView
            Animation’s
• What you need most of the time.
• Happens within an animation block:
    [UIView beginAnimations:nil context:NULL];
    // change stuff
    [UIView commitAnimations];
Customizing,
              a little.
• [UIView setAnimationDuration:]
• [UIView setAnimationCurve:]
  •   UIViewAnimationCurveEaseInOut
      UIViewAnimationCurveEaseIn
      UIViewAnimationCurveEaseOut
      UIViewAnimationCurveLinear

• Delay, repeat count, etc.
Built-in
          Transitions
• UIViewAnimationTransitionFlipFromLeft
• UIViewAnimationFlipFromRight
• UIViewAnimationTransitionCurlUp
• UIViewAnimationTransitionCurlDown
Transforms


• setTransform:(CGAffineTransform)
• Rotation, scale, translation, etc
Demo
Layers

• 2d object in 3d space.
• “Animation Container”
• Override layerClass method to change the
  type of a layer which your view uses.
Layer Types

• CALayer
• CAScrollLayer
• CATiledLayer
• CAEAGLLayer
Custom Animations

• Link against QuartzCore framework.
• Override actionForLayer:forKey: to return
  custom animation for property changes.
• Set animation on a layer directly to trigger
  an immediate animation.
Animation Types
• CABasicAnimation
 •   Go from point A to point B.

• CAKeyframeAnimation
 •   Go from A to B to C, etc.

 •   Animate along a path or by setting values and times

 •   Set calculation mode to paced, linear, or discrete.

• CAAnimationGroup
 •   Group multiple animations together.
Demo!

More Related Content

What's hot (10)

PPTX
OGDC2013_ Spine Animation_ Mr Alviss Ha
ogdc
 
PDF
animations
David Horvath
 
PPTX
4,000 Adams at 90 Frames Per Second | Yi Fei Boon
Jessica Tams
 
PDF
Xamarin 9/10 San Diego Meetup
Seamgen
 
PPTX
Fastest css3 animations
Ismail Berkay Beyaz
 
KEY
Getting Started with CoreGraphics
Xamarin
 
PDF
ProjectsSummary
ChenHan Tsai
 
PPTX
6. production reflection
illegaltheory
 
PDF
Framer part2 advanced
err32432402
 
PDF
OSCamp #4 on Foreman | Provisioning on Azure Cloud through Foreman by Aditi P...
NETWAYS
 
OGDC2013_ Spine Animation_ Mr Alviss Ha
ogdc
 
animations
David Horvath
 
4,000 Adams at 90 Frames Per Second | Yi Fei Boon
Jessica Tams
 
Xamarin 9/10 San Diego Meetup
Seamgen
 
Fastest css3 animations
Ismail Berkay Beyaz
 
Getting Started with CoreGraphics
Xamarin
 
ProjectsSummary
ChenHan Tsai
 
6. production reflection
illegaltheory
 
Framer part2 advanced
err32432402
 
OSCamp #4 on Foreman | Provisioning on Azure Cloud through Foreman by Aditi P...
NETWAYS
 

Viewers also liked (19)

PDF
Creating Container View Controllers
Bob McCune
 
PDF
Core Animation
Bob McCune
 
PDF
Building Modern Audio Apps with AVAudioEngine
Bob McCune
 
PDF
Mastering Media with AV Foundation
Chris Adamson
 
PDF
Master Video with AV Foundation
Bob McCune
 
PDF
Composing and Editing Media with AV Foundation
Bob McCune
 
KEY
Animation in iOS
Alexis Goldstein
 
PPTX
iOS Developer Interview Questions
Clark Davidson
 
PPTX
20 iOS developer interview questions
Arc & Codementor
 
KEY
Core Graphics & Core Animation
Andreas Blick
 
PPTX
Graphics Libraries
Prachi Mishra
 
PDF
Objective-C for Java Developers
Bob McCune
 
PDF
Drawing with Quartz on iOS
Bob McCune
 
PPTX
try! Swift - Advanced Graphics with Core Animation
Tim Oliver
 
PDF
Designing better user interfaces
Johan Ronsse
 
PPTX
iOS Coding Best Practices
Jean-Luc David
 
PDF
iOS design: a case study
Johan Ronsse
 
PDF
Quartz 2D with Swift 3
Bob McCune
 
PDF
iOS Scroll Performance
Kyle Sherman
 
Creating Container View Controllers
Bob McCune
 
Core Animation
Bob McCune
 
Building Modern Audio Apps with AVAudioEngine
Bob McCune
 
Mastering Media with AV Foundation
Chris Adamson
 
Master Video with AV Foundation
Bob McCune
 
Composing and Editing Media with AV Foundation
Bob McCune
 
Animation in iOS
Alexis Goldstein
 
iOS Developer Interview Questions
Clark Davidson
 
20 iOS developer interview questions
Arc & Codementor
 
Core Graphics & Core Animation
Andreas Blick
 
Graphics Libraries
Prachi Mishra
 
Objective-C for Java Developers
Bob McCune
 
Drawing with Quartz on iOS
Bob McCune
 
try! Swift - Advanced Graphics with Core Animation
Tim Oliver
 
Designing better user interfaces
Johan Ronsse
 
iOS Coding Best Practices
Jean-Luc David
 
iOS design: a case study
Johan Ronsse
 
Quartz 2D with Swift 3
Bob McCune
 
iOS Scroll Performance
Kyle Sherman
 
Ad

Similar to Starting Core Animation (20)

PDF
iOS Core Animation
Jussi Pohjolainen
 
PDF
A short guide to animations in iOS
SoftTeco
 
PDF
Building animated UI with Core Animation
Marco Zoffoli
 
PDF
Core Animation
Blogintosh
 
PDF
Crafting interactions with Core Animations, David Ortinau
Xamarin
 
PPTX
Animations & swift
Arun Nagarajan
 
PDF
UI Dynamics
SV.CO
 
KEY
Core animation
Weizhong Yang
 
PDF
Practical animation
SV.CO
 
PDF
Advanced UI styling and animations for iOS
Mike Gerasymenko
 
KEY
iOSインタラクションデザイン
hIDDENxv
 
PDF
iOS Animations using Pop
NSCoder Mexico
 
PDF
CoreAnimator par Clément Sauvage
CocoaHeads France
 
PDF
Core Animation
bdudney
 
PDF
iOS Transition Animations The proper way to do it.pdf
SatawareTechnologies4
 
PDF
#pragma conf 2013 - UIKit dynamics
Renzo G. Pretto
 
PDF
SwiftUI Animation - The basic overview
WannitaTolaema
 
PDF
Hi performance table views with QuartzCore and CoreText
Mugunth Kumar
 
PDF
Session 15 - Working with Image, Scroll, Collection, Picker, and Web View
Vu Tran Lam
 
PDF
UIKit Dynamics
Craig VanderZwaag
 
iOS Core Animation
Jussi Pohjolainen
 
A short guide to animations in iOS
SoftTeco
 
Building animated UI with Core Animation
Marco Zoffoli
 
Core Animation
Blogintosh
 
Crafting interactions with Core Animations, David Ortinau
Xamarin
 
Animations & swift
Arun Nagarajan
 
UI Dynamics
SV.CO
 
Core animation
Weizhong Yang
 
Practical animation
SV.CO
 
Advanced UI styling and animations for iOS
Mike Gerasymenko
 
iOSインタラクションデザイン
hIDDENxv
 
iOS Animations using Pop
NSCoder Mexico
 
CoreAnimator par Clément Sauvage
CocoaHeads France
 
Core Animation
bdudney
 
iOS Transition Animations The proper way to do it.pdf
SatawareTechnologies4
 
#pragma conf 2013 - UIKit dynamics
Renzo G. Pretto
 
SwiftUI Animation - The basic overview
WannitaTolaema
 
Hi performance table views with QuartzCore and CoreText
Mugunth Kumar
 
Session 15 - Working with Image, Scroll, Collection, Picker, and Web View
Vu Tran Lam
 
UIKit Dynamics
Craig VanderZwaag
 
Ad

More from John Wilker (20)

PDF
Cranking Floating Point Performance Up To 11
John Wilker
 
PDF
Introtoduction to cocos2d
John Wilker
 
PDF
Getting Started with OpenGL ES
John Wilker
 
PDF
User Input in a multi-touch, accelerometer, location aware world.
John Wilker
 
PDF
Physics Solutions for Innovative Game Design
John Wilker
 
PDF
Getting Oriented with MapKit: Everything you need to get started with the new...
John Wilker
 
PDF
Getting Started with iPhone Game Development
John Wilker
 
PDF
Internationalizing Your Apps
John Wilker
 
PDF
Optimizing Data Caching for iPhone Application Responsiveness
John Wilker
 
PDF
I Phone On Rails
John Wilker
 
PDF
Integrating Push Notifications in your iPhone application with iLime
John Wilker
 
PDF
P2P Multiplayer Gaming
John Wilker
 
PDF
Using Concurrency To Improve Responsiveness
John Wilker
 
PDF
Leaving Interface Builder Behind
John Wilker
 
PDF
Mobile WebKit Development and jQTouch
John Wilker
 
PDF
Accelerometer and OpenGL
John Wilker
 
PDF
Deep Geek Diving into the iPhone OS and Framework
John Wilker
 
PDF
NSNotificationCenter vs. AppDelegate
John Wilker
 
PDF
Using SQLite
John Wilker
 
PDF
From Flash to iPhone
John Wilker
 
Cranking Floating Point Performance Up To 11
John Wilker
 
Introtoduction to cocos2d
John Wilker
 
Getting Started with OpenGL ES
John Wilker
 
User Input in a multi-touch, accelerometer, location aware world.
John Wilker
 
Physics Solutions for Innovative Game Design
John Wilker
 
Getting Oriented with MapKit: Everything you need to get started with the new...
John Wilker
 
Getting Started with iPhone Game Development
John Wilker
 
Internationalizing Your Apps
John Wilker
 
Optimizing Data Caching for iPhone Application Responsiveness
John Wilker
 
I Phone On Rails
John Wilker
 
Integrating Push Notifications in your iPhone application with iLime
John Wilker
 
P2P Multiplayer Gaming
John Wilker
 
Using Concurrency To Improve Responsiveness
John Wilker
 
Leaving Interface Builder Behind
John Wilker
 
Mobile WebKit Development and jQTouch
John Wilker
 
Accelerometer and OpenGL
John Wilker
 
Deep Geek Diving into the iPhone OS and Framework
John Wilker
 
NSNotificationCenter vs. AppDelegate
John Wilker
 
Using SQLite
John Wilker
 
From Flash to iPhone
John Wilker
 

Recently uploaded (20)

PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Complete Network Protection with Real-Time Security
L4RGINDIA
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Complete Network Protection with Real-Time Security
L4RGINDIA
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 

Starting Core Animation

  • 2. What is Core Animation? • Framework for easily creating animated user interfaces. • Tightly integrated with UIKit. • Animate properties over time. • Layer based.
  • 3. Where is Core Animation Used? • Everywhere! • Navigation controllers, displaying modal view controllers, deselecting cells in a table view, flipping to an info screen, etc!
  • 4. UIView Animation’s • What you need most of the time. • Happens within an animation block: [UIView beginAnimations:nil context:NULL]; // change stuff [UIView commitAnimations];
  • 5. Customizing, a little. • [UIView setAnimationDuration:] • [UIView setAnimationCurve:] • UIViewAnimationCurveEaseInOut UIViewAnimationCurveEaseIn UIViewAnimationCurveEaseOut UIViewAnimationCurveLinear • Delay, repeat count, etc.
  • 6. Built-in Transitions • UIViewAnimationTransitionFlipFromLeft • UIViewAnimationFlipFromRight • UIViewAnimationTransitionCurlUp • UIViewAnimationTransitionCurlDown
  • 9. Layers • 2d object in 3d space. • “Animation Container” • Override layerClass method to change the type of a layer which your view uses.
  • 10. Layer Types • CALayer • CAScrollLayer • CATiledLayer • CAEAGLLayer
  • 11. Custom Animations • Link against QuartzCore framework. • Override actionForLayer:forKey: to return custom animation for property changes. • Set animation on a layer directly to trigger an immediate animation.
  • 12. Animation Types • CABasicAnimation • Go from point A to point B. • CAKeyframeAnimation • Go from A to B to C, etc. • Animate along a path or by setting values and times • Set calculation mode to paced, linear, or discrete. • CAAnimationGroup • Group multiple animations together.
  • 13. Demo!