Core Animation 1
8.8K views | +0 today
Follow
Core Animation 1
Core Animation
Curated by gwen
Your new post is loading...
Your new post is loading...
Scooped by gwen
Scoop.it!

cocoa - What's the difference between a CoreAnimation Layer Backed View and a Layer Hosting View? - Stack Overflow

A layer backed view contains Cocoa or Cocoa Touch UI controls and can be animated using the animator proxy. Layer backed views allow you to animate your UI and help to reduce the overhead of drawing by caching the views contents on a core animation layer. Create a Layer backed view by setting the wants layer property:

more...
No comment yet.
Scooped by gwen
Scoop.it!

Core HTML5 Canvas: Graphics, Animation, and Game Development ...

Core HTML5 Canvas: Graphics, Animation, and Game Development ... | Core Animation 1 | Scoop.it
Free chapters, featured examples, and the book's code are available at CoreHTML5Canvas.com. One of HTML5's most exciting features, Canvas provides a powerful.
more...
No comment yet.
Scooped by gwen
Scoop.it!

Find: Simple Strategies for Smooth Animation on the iPhone

Find: Simple Strategies for Smooth Animation on the iPhone | Core Animation 1 | Scoop.it
Animation on iOS is powered by Core Animation layers. Layers are a simple abstraction for working with the GPU. When animating layers, the GPU just transforms surfaces as an extended function of the hardware itself.
more...
No comment yet.
Scooped by gwen
Scoop.it!

The Categorized OpenGL ES Tutorial Collection | iOS Development Tips & Tricks by BiOM

Below you will find OpenGL ES tutorials covering OpenGL ES 2.0, 1.1, 1.0, 1.x, for the Apple iPhone, Google Android, Pocket PC, and Microsoft Windows Mobile. Any of these tutorials cannot be converted from one device to another, but the original device type for each tutorial is listed.

Please note, i have only listed 2 OpenGL ES 2.0 tutorials as there just aren’t many available, there is the OpenGL ES 2.0 Programming Guide which contains a set of OpenGL ES 2.0 tutorials and examples that run on the iPhone. I recommend you do not do anything with OpenGL ES 2.0 until you have a complete grasp of OpenGL ES 1.x.

When two tutorials on the same material, for the same platform were found I only listed the better of the two. If there any tutorials that you believe should be added to the list please post them below.

more...
No comment yet.
Scooped by gwen
Scoop.it!

Loading…

Once established, you can transform a layer's geometry using matrix transformations. The CATransform3D data structure defines a homogenous three-dimensional transform (a 4 by 4 matrix of CGFloat values) that is used to rotate, scale, offset, skew, and apply perspective transformations to a layer.

Two layer properties specify transform matrices: transform and sublayerTransform. The matrix specified by the transform property is applied to the layer and its sublayers relative to the layer's anchorPoint. Figure 3 shows how rotation and scaling transforms affect a layer when using an anchorPoint of (0.5,0.5), the default value. Figure 4 shows how the same transform matrices affect a layer when using an anchorPoint of (0.0,0.0). The matrix specified by the sublayerTransform property is applied only to the layer’s sublayers, rather than to the layer itself.

 

more...
No comment yet.
Scooped by gwen
Scoop.it!

Bridging-Categories

Bridging-Categories | Core Animation 1 | Scoop.it
Bridging-Categories - Bridging categories for Cocoa's toll-free bridged classes...
more...
No comment yet.
Scooped by gwen
Scoop.it!

Automating UI testing on the iOS

Automating UI testing on the iOS | Core Animation 1 | Scoop.it
A couple of weeks ago I gave a talk about automating UI testing on the iOS at the Second Tel Aviv iOS Developers Meetup. In the lecture I introduced importance of performing automated UI testing, a...
more...
No comment yet.
Scooped by gwen
Scoop.it!

iphone - iOS: Using UIView's 'drawRect:' vs. it's layer's delagate 'drawLayer:inContext:' - Stack Overflow

iphone - iOS: Using UIView's 'drawRect:' vs. it's layer's delagate 'drawLayer:inContext:' - Stack Overflow | Core Animation 1 | Scoop.it

How to decide which approach to use? Is there a use case for each one?

Always use drawRect:, and never use a UIView as the drawing delegate for any CALayer.

how come the delegate method is called if my instance is not defined to be the layer's delegate? and what mechanism prevents drawRect from being called if drawLayer:inContext: is called?

Every UIView instance is the drawing delegate for its backing CALayer. That's why [[self layer] setDelegate:self]; seemed to do nothing. It's redundant. The drawRect: method is effectively the drawing delegate method for the view's layer. Internally, UIView implements drawLayer:inContext: where it does some of its own stuff and then calls drawRect:

 

more...
No comment yet.
Scooped by gwen
Scoop.it!

Getting Started with OpenGL ES for the iPhone | Switch on the Code

Getting Started with OpenGL ES for the iPhone | Switch on the Code | Core Animation 1 | Scoop.it
An introductory tutorial on building OpenGL ES applications for the iPhone, includes source code for a working example.
more...
No comment yet.
Scooped by gwen
Scoop.it!

Anatomy of a page-flip animation

In this post I would like to do a close examination of my take on the page-flip animation.  As with my foray into folding animations, this started with my desire to come up with some cool examples ...
more...
No comment yet.
Scooped by gwen
Scoop.it!

iPhone Development: An Introduction to SceneKit

iPhone Development: An Introduction to SceneKit | Core Animation 1 | Scoop.it
SceneKit views are fully layer-aware, so the view can be animated using Core Animation. Not only can the view itself be animated using Core Animation, you can actually use Core Animation to animate the contents of the ...
more...
No comment yet.
Scooped by gwen
Scoop.it!

Good Friday #2: SKBounceAnimation: Easy bounce animations with ...

Good Friday #2: SKBounceAnimation: Easy bounce animations with ... | Core Animation 1 | Scoop.it
Good Friday #2: SKBounceAnimation: Easy bounce animations with CoreAnimation! SKBounceAnimation is a CAKeyframeAnimation subclass that creates an animation for you based on start and end values and a number of ...
more...
No comment yet.
Scooped by gwen
Scoop.it!

OSX and iOS Books Collection - RapidShare MediaFire JumboFiles ...

OSX and iOS Books Collection - RapidShare MediaFire JumboFiles ... | Core Animation 1 | Scoop.it
Core Animation for Mac OS X and the iPhone. Core Data DTrace Dynamic Tracing In Oracle Solaris, Mac OS X & FreeBSD. Game.and.Graphics.Programming.for. iOS.and.Android.with.OpenGL.ES.2.0. Hacking and Securing iOS Applications ...
more...
No comment yet.
Scooped by gwen
Scoop.it!

How To Create a Simple Magazine App with Core Text

How To Create a Simple Magazine App with Core Text | Core Animation 1 | Scoop.it

Core Text is a text engine found in iOS 3.2+ and OSX 10.5+ that gives you fine-grained control over text layout and formatting.

It sits in the sweet spot between UIKit and Core Graphics/Quartz:

In UIKit you have UILabel and you add a word or a text line on the screen by simple Drag-and-Drop in IB, but you cannot change the color of individual words.In Core Graphics/Quartz you can do pretty much everything the system is capable of, but you need to calculate the position of each glyph in your text and draw it on the screen.Core Text lies right between the two! You have complete control over position, layout, attributes like color and size, but Core Text takes care of everything else for you – from word wrap to font rendering and more.

more...
No comment yet.
Scooped by gwen
Scoop.it!

How To Use UIView Animation Tutorial | Ray Wenderlich

How To Use UIView Animation Tutorial | Ray Wenderlich | Core Animation 1 | Scoop.it
One of the coolest things about iPhone apps is how animated many of them are.
more...
No comment yet.
Scooped by gwen
Scoop.it!

Resize a UIImage the right way — Trevor’s Bike Shed

Resize a UIImage the right way — Trevor’s Bike Shed | Core Animation 1 | Scoop.it

When deadlines loom, even skilled and experienced programmers can get a little sloppy. The pressure to ship may cause them to cut corners and look for a quick and easy solution, even if that solution is sure to cause trouble later on. Eventually, their coding style devolves into copy and paste programming, a lamentable tactic that involves cherry-picking snippets of code from a past project and putting them to use in the current one. Of course, the proper solution is to factor out the code into some kind of reusable library, but due to time constraints, it’s simply duplicated wherever it’s needed. Any bugs in the original code have now spread to a dozen different places in a dozen different projects. It’s an algorithm for chaos.

more...
No comment yet.
Scooped by gwen
Scoop.it!

Animate curtains in iOS – simple with Transforms and CoreAnimation at Didikot's blog

Animate curtains in iOS – simple with Transforms and CoreAnimation at Didikot's blog | Core Animation 1 | Scoop.it
Code & life snippets...
more...
No comment yet.
Scooped by gwen
Scoop.it!

OpenGL:Tutorials:Theory - GPWiki

OpenGL:Tutorials:Theory - GPWiki | Core Animation 1 | Scoop.it

This document serves to address the theory behind OpenGL, as several facets of OpenGL are commonly used with little knowledge of the reason, or worse yet, used without reason. Firstly, this article intends to explain what a state machine is and why OpenGL is considered as such.

more...
No comment yet.
Scooped by gwen
Scoop.it!

Simple CALayer | Applausible Blog

Simple CALayer | Applausible Blog | Core Animation 1 | Scoop.it
Adding simple images with more manipulation ability can be achieved using the CALayer object. So we create a subclass of UIView to create our simple scene.
more...
No comment yet.
Scooped by gwen
Scoop.it!

[Tutorial] Drawing to the screen.

[Tutorial] Drawing to the screen. | Core Animation 1 | Scoop.it
[IMG]

Want to create a drawing app? Here you go. Clearly, you will need to make improvements to the drawing code, as I literally spent five minutes...
more...
No comment yet.