iphoneiphone-sdk-3.0tag-cloud

How can I implement a tag cloud on iPhone?


like this one here:

image

Is there an existing class that I can use?


Solution

  • 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.