Thursday 8 September 2011

iOSDev UK: Animation for Serious Apps

Neil Taylor, Aberystwyth University, @digidol

  • CALayer is not actually the view — it’s the model
  • Old-style UIView animations are now discouraged — start to use blocks instead
    • block-style also allows you to add further animations on completion
  • CALayer animation is slightly different
    • animate position, not centre
    • bounds, not frame
    • values are animated, not changed
    • CAAnimation setFromValue:/setToValue:
  • Keyframe animation lets you animate across a complex path
    • Core Animation will calculate intermediate frames
    • e.g. shopping cart items thrown into a cart at the bottom of the screen
  • Other bits
    • can have transactions to tie animations together
  • More useful references in slides…

No comments: