-3

谁能指导我如何实现ios应用动画?

需要什么样的视图控制器、对象和实现?

谢谢

4

3 回答 3

5

You shoud have:

  • a root UIScrollView
  • a programmatically-created UIView for every icon
  • to iterate through the icons use [root subviews]
  • an animation function shakeView:(UIView *)paramView that adds the delete icon and starts shaking the icon
  • a global bool isShaking to have the state of the screen

Use touchesBegan to detect the view that is clicked/selected and the type of touch

That about sums it up. Try to create a maximum amount of elements programmatically.

于 2011-04-07T08:53:44.950 回答
2

There is no harm if you take a look at this:

Move UIViews to avoid collision like rearranging icons on Springboard

check Kristopher Johnson Answer.

于 2011-04-07T08:54:32.760 回答
1

Unfortunately Apple doesn't provide a GridView Class, but you can use the very handy TTLauncherView from Three20 that implements all the default behaviour for you:

https://github.com/facebook/three20

From their website http://three20.info/

Three20 is a open source Objective-C library used by dozens of well-known brands in the App Store, including Facebook, Posterous, Pulse, Meetup.com, and SCVNGR. Three20 provides powerful view controllers such as the Launcher, the popular Photo Browser, and internet-aware tables.

于 2011-04-07T08:54:35.510 回答