Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Animations

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Oct 27, 2008 7:29 pm    Post subject: Animations Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Apr 11, 2009 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Apr 28, 2009 12:11 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon May 18, 2009 5:29 pm    Post subject: Reply with quote

Krzysztof Rutkowski: Animations and transformations

"Scale, move, rotate and object, smooth animations, perform task after ani-
mation is finished."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue May 19, 2009 11:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri May 29, 2009 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun May 31, 2009 1:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun May 31, 2009 1:04 am    Post subject: Reply with quote

SO - Is there an way to pause an Core Animation and resume it at
some time later?


"These things happen only on very fast scroll movements in an UIScrollView.
I want to improve performance by stopping all ongoing animations but not
the one that makes the scroll view scroll."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun May 31, 2009 1:11 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Jul 04, 2009 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sat Aug 15, 2009 8:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Aug 21, 2009 12:05 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Fri Aug 28, 2009 7:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Sep 10, 2009 1:02 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sat Dec 12, 2009 9:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sat Dec 12, 2009 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Jan 24, 2010 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Mar 26, 2010 9:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Mar 27, 2010 3:49 am    Post subject: Reply with quote

so - I want to make animation which turn the leaves of a book for
iPhone


"I want to make page-flip animation for iPhone. I know that iPhone has
curlUp and curlDown animation function."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Thu Apr 15, 2010 7:45 pm    Post subject: Reply with quote

SO - What iPhone OS APIs could I use to implement a transition ani-
mation similar to the iBook page flip transition?


"Apple certainly uses OpenGL ES to implement it. The actual API Apple uses
is private, but this blogger has the starting of an implementation with sample
code."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat May 22, 2010 2:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon May 24, 2010 10:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Thu Jul 29, 2010 3:13 pm    Post subject: Reply with quote

so - UIView isn’t released. Calling delegate with self, and using
UIView commitAnimations adds retain count


"I have a view that is added as a subview in a viewcontroller. The subview
has delegates methods and the viewcontroller is assinged as its delegate.
The subview has a animation and calls a delegate method when the anima-
tion is finished."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Thu Jul 29, 2010 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Aug 12, 2010 11:03 pm    Post subject: Reply with quote

so - Force clockwise/anticlockwise rotation for a CATransform3D of
an UIImageView


"I'm animating a pendulum which swings from 0 degrees to max 200 degre-
es and then back again. The problem is that if the pendulum goes over 180
degrees, it returns to 0 by the shortest route which is to continue clockwise."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sat Oct 23, 2010 8:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed Nov 24, 2010 7:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Nov 29, 2010 10:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Nov 29, 2010 10:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 532

PostPosted: Sat Jan 22, 2011 12:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sun Jun 26, 2011 3:10 am    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Jun 26, 2011 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Jun 26, 2011 3:03 pm    Post subject: Reply with quote

cimgf - Core Animation Tutorial: Interrupting Animation Progress

"In this post I am going to talk about how to interrupt animation progress
and how to determine whether an animation completed its full run or was
interrupted."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Jun 26, 2011 3:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Jul 23, 2011 1:12 am    Post subject: Reply with quote

so - Why does one have to use CALayer's presentationLayer for hit-testing?

"So I suspect that only presentation layer has the right geometry information
to perform the hit test."


...

so - How to get touch event on a CALayer?

"Let's say you've got a bunch of CALayers in your view controller's main la-
yer, and you want them to go to opacity 0.5 when you touch them. Imple-
ment this code in the .m file of your view controller class..."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Oct 22, 2011 4:54 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Tue Apr 29, 2014 8:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat May 28, 2016 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Apr 20, 2017 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed May 10, 2017 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group