How can I implement a tag cloud on iPhone?

人走茶凉 提交于 2019-12-10 11:40:22

问题


like this one here:

Is there an existing class that I can use?


回答1:


You can use some of the string drawing methods to find out how large a frame you need for each tag, and then size a bunch of UILabels to fit each word.

As you'll likely want your user to interact with the tags, subclass UILabel to handle touches where appropriate.



来源:https://stackoverflow.com/questions/1408221/how-can-i-implement-a-tag-cloud-on-iphone

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