I need hint/code like deletion/move app effect on iOS, normally i have started the code, I am using
UIButton list in
So my question is that supposes I have 8 to 10 button in screen and i want to change their position with dragging. for example choose 6th button and move or set to between 1 and 2. when I put them in to between the position of other button will change.
I am using
UIPanGestureRecognizer for dragging.
download, <a href="http://undefinedvalue.com/sites/undefinedvalue.com/files/Tiles-v1.0.zip" rel="nofollow">Tiles-v1.0.zip</a>, and check code, this is what i used when i needed to implement that.
reference: <a href="https://stackoverflow.com/questions/1535057/move-uiviews-to-avoid-collision-like-rearranging-icons-on-springboard" rel="nofollow">Move UIViews to avoid collision like rearranging icons on Springboard</a>Answer2:
If you already have the code for dragging, the rest is easy. Just use UIView Animation.
[UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.3]; ... [button setFrame:newFrame]; ... [UIView commitAnimations];
Basically, just move your buttons to the their new positions in that beginAnimations - commitAnimations block.
Hope this helps.