Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 28, 2009, 07:16 AM   #1
rocky612
macrumors newbie
 
Join Date: Feb 2009
Location: Ukraine, Donetsk
Send a message via ICQ to rocky612
Stopping image at 'pos' position. Again

Hi!
I know there was such topic. but there's no answer.
the problem is I need to know the current position of animated CALayer, while it's moving from point A to Point B. i don't know how to get it. is it possible? are there any solutions?

Please help!
rocky612 is offline   0 Reply With Quote
Old Feb 28, 2009, 08:57 AM   #2
Jeremy1026
macrumors 68000
 
Join Date: Nov 2007
Quote:
Originally Posted by rocky612 View Post
Hi!
I know there was such topic. but there's no answer.
the problem is I need to know the current position of animated CALayer, while it's moving from point A to Point B. i don't know how to get it. is it possible? are there any solutions?

Please help!
No, as soon as the item begins its animation its coordinates are set to the ending location. There is no way to track its location as it moves using a single Core Animation translation. You could however, do a short animation and repeat it until it gets to its final location, that way you will know the item is at (0,20), (20,20), (40,20), (60,20) etc.
__________________
1026 Development
Jeremy1026 is offline   0 Reply With Quote
Old Mar 4, 2009, 11:00 AM   #3
rocky612
Thread Starter
macrumors newbie
 
Join Date: Feb 2009
Location: Ukraine, Donetsk
Send a message via ICQ to rocky612
i understand. thank you!!!
rocky612 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How to set a image to go up and return to original position? heman85 iPhone/iPad Programming 1 Jan 20, 2014 08:46 AM
Griffin and ShopKeep POS Announce 'ShopKeep Mobile' POS Case for iPod Touch MacRumors iOS Blog Discussion 16 Jan 14, 2014 11:50 PM
capture overlay image whenever image move new position or new scale karthees iPhone/iPad Programming 1 Mar 27, 2013 01:38 PM
CES 2013: ShopKeep POS and Griffin Partner on iPad POS System MacRumors iOS Blog Discussion 20 Jan 18, 2013 02:37 PM

Forum Jump

All times are GMT -5. The time now is 03:49 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC