Everything works just fine except for one property of the layer: anchorPoint. It looks like it directly jumps to the CGPoint with no animation. Event with a very slow duration (I've set it to 10) the layer instantly gets that anchorPoint with no transition. It's driving me crazy. Am I doing something stupid there? Apple Documentation says that property is animatable!
Thanks in advance for any help/explanation.
Giorgio
Hi, I don't know for your non-transition problem cuz I have the same problem.
Did you find the reason ?
(I have a scale transform coupled with a translate transform animation, and the scale jumps cut directly to the final value...)
thank you for the code
would you please tell me what library I've got to include? I get the following error:
Code:
Undefined symbols:
"_NSMakePoint", referenced from:
-[PageController cancelAnimation] in PageController.o
-[PageController cancelAnimation] in PageController.o
".objc_class_name_CABasicAnimation", referenced from:
literal-pointer@__OBJC@__cls_refs@CABasicAnimation in PageController.o
symbol(s) not found
collect2: ld returned 1 exit status
Build failed (2 errors, 3 warnings)
Still I have included the whole QuartsCore
#import <QuartzCore/QuartzCore.h>;
This is just an update to my own post.
Please use the following updated code. The api used previously are not available in iPhone OS.
Hi sukumar,
thanks again for your replies
Unfortunately, even with your second code I get the following error:
Code:
".objc_class_name_CABasicAnimation", referenced from:
literal-pointer@__OBJC@__cls_refs@CABasicAnimation in PageController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I tried, as you suggested, to include <Foundation/Foundation.h> but it didn't help...
There is any other library I should include?
Thank you very much
I appreciate your patience!
When you create a new Xcode project, the template include three frameworks viz. Foundation, UIKit and CoreGraphics.
I have just added QuartzCore and nothing more. This time error might be coming due to one of the missing header file. Don't know what exactly is happening.
Hi sukumar,
thanks again for your replies
Unfortunately, even with your second code I get the following error:
Code:
".objc_class_name_CABasicAnimation", referenced from:
literal-pointer@__OBJC@__cls_refs@CABasicAnimation in PageController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Giorgio
You need to add QuartzCore.framework (/System/Library/Frameworks/QuartzCore.framework) into your project in Xcode.
You need to add QuartzCore.framework (/System/Library/Frameworks/QuartzCore.framework) into your project in Xcode.
The correct path is /Developer/Platforms/YOUR_PLATFORM(SIMULATOR/IPHONE)/Developer/SDKs/YOURSDK(2.0/2.1/2.2/3.0)/System/Library/Frameworks/QuartzCore.framework.
Just do not get confuse with System (Mac OS X) path.