ios - Can we apply gravity behavior to centre of screen? -


i using uidynamicbehavior (uigravitybehavior) . played gravitydirection not make focused on centre of screen.

is there way around make gravity focused in centre on screen.

basically want show views (circles) converged centre of screen move them apart.

any suggestion of great help.

edited: added code

uigravitybehavior *gravitybehaviour = [[uigravitybehavior alloc] initwithitems:@[ballview]];  gravitybehaviour.gravitydirection = cgvectormake(0, -1.0); 

we can give gravity direction move along line , if want set gravity act in centre of screen. i.e if objects anywhere getting attracted centre of screen if center of screen acting origin of gravity . :)


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -