Create springboard like main view

独自空忆成欢 提交于 2019-12-18 04:24:10

问题


Is there some sample code, or an easy way, to implement an application with as its first view something like Springboard?

What I am looking for is just a view with basic icons which after a tab on an icon tells the view-controller to push the view associated with the selected icon.

This in itself is not that difficult off-course (just putting images on a view), but is there an easy way to implement all the extra functionality as well (as e.g. moving the icons around (start 'vibrating' when when you push hold them), multiple pages etc.). The Facebook App seems to have this. It is probably not worth my while to write it myself, but it would be nice if there is something 'out of the box' to give the App a bit more of an iPhone feel.

Thanks in advance!


回答1:


Facebook uses the Three20 library for its UI. The specific view used for the SpringBoard-like interface is known as TTLauncherView.




回答2:


This is not an endorsement (I have yet to really check this out, and I may be too entrenched in using Three20 at this point to even bother), but here is another project that implements the springboard functionality: myLauncher on Github




回答3:


You can use UICollectionView to create this

Look at this example

https://github.com/tularovbeslan/Springboard



来源:https://stackoverflow.com/questions/4969263/create-springboard-like-main-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!