Mac Cocoa |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Oct 27, 2008 7:29 pm Post subject: Animations |
|
|
iphonedevsdk.com - Animating the Zooming of an Image
"I have an "ImageStretchView" which is just a custom view with the drawRect
method overridden so that the picture loaded from the camera is always drawn
in the full bounds of the view." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Apr 11, 2009 12:41 am Post subject: |
|
|
Matt Long - Record Your Core Animation Animation
"... you can draw in a graphics context while your Core Animation animation
is running and add each image created to a QTMovie object from QTKit. This
enables you to create a QuickTime movie of your Core Animation animation.
Here’s how." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Tue Apr 28, 2009 12:11 am Post subject: |
|
|
iphonedevsdk.com - Virtual memory leak when using UIImageView
setAnimationImages?
"Every time I run the animation, VM usage goes up by several megs. This wo-
uld make sense given that I'm using big fullscreen images. But what doesn't
make sense is that the virtual memory is never released, and pretty soon
Springboard terminates my app (when I get a bit over 80 megs VM usage)." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon May 18, 2009 5:29 pm Post subject: |
|
|
Krzysztof Rutkowski: Animations and transformations
"Scale, move, rotate and object, smooth animations, perform task after ani-
mation is finished." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Tue May 19, 2009 11:31 pm Post subject: |
|
|
MF - Transition / Tweening / Moving To Location
"Basic structure is:
1. Set start position for your view's frame.
2. [UIView beginAnimations...
3. Set end position for your frame.
4. [UIView commitAnimations];" |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri May 29, 2009 4:15 pm Post subject: |
|
|
MF - Pausing animated UIImages?
"I want to be able to pause and resume the animation by the press of a
button, but I cant find a pause-function for animated uiimages." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sun May 31, 2009 1:01 am Post subject: |
|
|
SO - How to create iphone’s wobbling icon effect?
"I want to wobble an image back and forth in my application similar to how
the iPhone icons wobble when you press down on it. What's the best way to
do that?" |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sun May 31, 2009 1:11 am Post subject: |
|
|
SO - iPhone “slide to unlock” animation
"Any ideas as to how Apple implemented the "slide to unlock" (also, "slide to
power off" is another identical example) animation?" |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Jul 04, 2009 3:53 pm Post subject: |
|
|
MF - Submitted Apps Now Require 3.0 Methods Only? Poll Device For
It's OS?
"... depending on it's OS: if OS 3.0 was present, the device would first find
willRotateToInterfaceOrientation, and ignore willAnimateFirstHalfOfRotation
FromInterfaceOrientation:duration and/or willAnimateSecondHalfOfRotation
FromInterfaceOrientation:duration. including NSLogs in these methods reve-
aled that both are called during run time when the device orientation switch-
es." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Sat Aug 15, 2009 8:45 pm Post subject: |
|
|
iPhone in Action - Animating Sublayers
"So, what do you do if you want to create a Quartz drawing (some of which
might animate explicitly--or not) that itself contains simple, implicit animati-
ons? That's what this article will talk about." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Aug 21, 2009 12:05 am Post subject: |
|
|
so - Add A view with Dissolve effect in iPhone
"... I imagine you want is a way to switch from view to view with transitions
in a single view controller, there is a sample project called ViewTransition ...
it contains a view that you can use to switch from view to view with transiti-
ons, it might help you." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Fri Aug 28, 2009 7:38 pm Post subject: |
|
|
so - UIView perspective transform
"... you'll need to work with the UIView's layer, using a CATransform3D to
perform the layer's rotation. The trick to get perspective working..." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Sep 10, 2009 1:02 am Post subject: |
|
|
so - Background in an iPhone Quartz CAAnimation
"Whenever I am using a quartz animation the background of the animation is
white. How can I change this to be a different color." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Sat Dec 12, 2009 9:21 pm Post subject: |
|
|
github.com - OpenFlow - CoverFlow API replacement for the iPhone
"Currently, the delegate protocol is used to let your code know when the
user selected a new object. The datasource protocol is called when
AFOpenFlowView needs a UIImage object. This method should be fast." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Sat Dec 12, 2009 9:33 pm Post subject: |
|
|
cimgf - Marching Ants With Core Animation, by Matt Long
"One of the Core Animation layers available as of Snow Leopard and iPhone
OS 3.0, CAShapeLayer provides some interesting attributes that are anima-
table. The CAShapeLayer enables you to create a layer that renders any a-
rbitrary shape you specify using a path, a CGPathRef. It also enables you to
specify a stroke pattern for the stroke that outlines the shape." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sun Jan 24, 2010 12:52 am Post subject: |
|
|
freetimestudios.com - Introducing FTUtils: Open Source Utilities for
iPhone Developers
"It probably comes as no surprise that the bulk of FTUtils contains enhance-
ments and extensions to the Core Animation API (called FTAnimation). I use
Core Animation a lot, and I have tried to find elegant ways to round off so-
me of the sharper edges of the API." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Mar 26, 2010 9:34 pm Post subject: |
|
|
so - CADisplayLink stops updating when UIScrollView scrolled
"However, as soon as I scroll a UIScrollView I have added to my view
hierarchy, the animation stops immediately, only to return again when
scrolling has completely stopped and come to a standstill...." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat May 22, 2010 2:13 pm Post subject: |
|
|
discussions.apple.com - Coverflow View
"Firstly, One of the sample apps that ships with Xcode 3 makes a nice cover
flow using core animation. On my system it's in:
/Developer/Examples/Quartz/Core Animation/CovertFlow
Note the 't' in Covert isn't a typo." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon May 24, 2010 10:42 pm Post subject: |
|
|
MF - iPad: Move UIView with animation, then move it back
"Assigning to a transform will cause the old one to disappear. To return to
the original position, assign the identity transform to it.
self.transform = CGAffineTransformIdentity;" |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Thu Jul 29, 2010 3:17 pm Post subject: |
|
|
adc - CAAnimation Class Reference
@property(retain) id delegate
Important: The delegate object is retained by the receiver. This is a rare
exception to the memory management rules described in Memory Manage-
ment Programming Guide.
An instance of CAAnimation should not be set as a delegate of itself. Doing
so (outside of a garbage-collected environment) will cause retain cycles. |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Sat Oct 23, 2010 8:54 pm Post subject: |
|
|
Watching Apple - A closer look at iPhone transition animations
"You might think that animating in a new page to replace the old would
simply slide the two in lock-step, like two cafeteria trays on a serving rail,
but it’s more subtle than that. To see that subtlety, let’s slow things down
for a closer look." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Nov 24, 2010 7:26 pm Post subject: |
|
|
MF - Animating a CALayer sublayer
"I have just solved the problem: my sublayer wasn't visible because it wasn't
initialized with any content." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Nov 29, 2010 10:46 pm Post subject: |
|
|
cocoabuilder.com - CA: fillMode and rotation animation . . .
"I set the fillMode attribute to be kCAFillModeForwards in order to preserve
the layer in its transformed state but this does not help. I must not correctly
understand how fillMode is to be used. Anyone have a suggestion as to how
I can achieve the desired result and have the result of the animation stick?" |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Nov 29, 2010 10:48 pm Post subject: |
|
|
so - After Animation, View position resets
"Might want to set these properties. They cause the presentation to be pre-
served at the end of the animation."
Code: | animation.fillMode = kCAFillModeForwards;
animation.removedOnCompletion = NO; |
|
|
Back to top |
|
|
XNote Kapetan
Joined: 16 Jun 2006 Posts: 532
|
Posted: Sat Jan 22, 2011 12:26 am Post subject: |
|
|
SO - iPhone Curl Left and Curl Right transitions
Dimitris: "I am looking for a way to do a UIViewAnimationTransitionCurlUp or
UIViewAnimationTransitionCurlDown transition on the iPhone but instead of
top to bottom, do it from the left to right (or top/bottom in landscape mode)." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Sun Jun 26, 2011 3:10 am Post subject: |
|
|
Otter Software Blog - Core Animation - The Animator Proxy
"The animator proxy is available to NSViews and NSWindows and is
completely free of Core Animation layers. As such is technically not Core
Animation but is rather Cocoa Animation. However the two are so closely
tied together that it is worth considering it part of Core Animation." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sun Jun 26, 2011 2:58 pm Post subject: |
|
|
iphonedevsdk.com - Using animation groups to create a linked
sequence of animation steps
"It just animates our company logo, fading in, moving diagonally across the
screen, rotating, falling (with an slide whistle sound), rotating back to it's
original orientation, sliding sideways back to it's starting position, and then
fading out again.
You can download the project..." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sun Jun 26, 2011 3:21 pm Post subject: |
|
|
so - Observing animated property changes in a CALayer
"I have a CABasicAnimation that animating a property of a CALayer e.g.
bounds.origin. I want to be able to observe the property changing over
time, but haven't really found a method that works 100%." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Oct 22, 2011 4:54 am Post subject: |
|
|
JLM - CGAffineTransform Additions
"As you probably know, Apple provides a bunch of functionality for mani-
pulating objects in 2D space using CGAffineTransform. Oddly, Apple do-
esn't provide you with a way to extract the scale, transform, and rotation
information from a CGAffineTransform and they don't provide any shear-
ing functionality at all." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Tue Apr 29, 2014 8:23 pm Post subject: |
|
|
github - Pop - Extensible iOS and OS X animation library.
"Pop is an extensible animation engine for iOS and OS X. In addition to
basic static animations, it supports spring and decay dynamic animations,
making it useful for building realistic, physics-based interactions. The API
allows quick integration with existing Objective-C codebases and enables
the animation of any property on any object. It's a mature and well-tested
framework that drives all the animations and transitions in Paper."
See examples: https://www.youtube.com/watch?v=OiY1cheLpmI |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat May 28, 2016 12:25 am Post subject: |
|
|
CALayer - CAShapeLayer in Depth, Part I
"Because CAShapeLayer has a lot to offer, I'll be breaking up our exploration
of everything this class has to offer into three parts: Part I, this post, will
focus on everything involved with creating shape layers. Part II will focus on
animating shape layers, which is perhaps their most powerful capability. And
finally, Part III will be a showcase of sorts that demonstrates several non-
trivial examples of creating and animating shape layers as well as different
applications for shape layers."
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Apr 20, 2017 1:12 pm Post subject: |
|
|
r - Introducing TweenKit - A new animation library for iOS!
"One of its main features is that these animations are also scrubbable, which
can help make some pretty cool onboarding experiences! There's an example
project included in the repo that shows how you can build these.
I'd love some feedback on if you were able to understand how it works from
the readme, if this is something you might consider using, and what I could
improve." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed May 10, 2017 5:07 pm Post subject: |
|
|
r - Macaw iOS Library: Morphing Animations
"Macaw is an open source library which makes vector graphics drawing and
animation easy and enjoyable. Not long ago we released the 0.8.2 version
with interesting updates." |
|
Back to top |
|
|
|