问题
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