iphone - Animating custom property with update -


i want animate custom property non-uiview object, , can't figure out correct way.

myobject.currentposition = 10; 

myobject subclass of nsobject.

1: currentposition should move 100, seconds. how can use caanimation make animation? or should use make kind of animation?

2: currentposition property has setter update position of uiviews on screen. correct way or another, , better, way?

thanks

edit:

to clear, i'm making gallery. wave gallery, figure out gallery a http://rst.gsfc.nasa.gov/intro/f4-3a.jpg. when touch down , drag horizontally uiviews re-arranged moving left or right. biggest problem is:

currentposition move uiviews around wave. when touch ends, there 'deacceleration', , need make 'deacceleration movement'.

edit:

i 'solved' using nstimer. wasn't approaching expected. working well.

timer = [nstimer scheduledtimerwithtimeinterval:1.0f/60.0f target:self selector:@selector(deacceleration) userinfo:nil repeats:yes]; 


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -