Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
像这里的这个:
我可以使用现有的课程吗?
您可以使用一些字符串绘制方法来找出每个标签需要多大的框架,然后调整一堆 UILabel 的大小以适合每个单词。
由于您可能希望您的用户与标签交互,因此子类 UILabel 以在适当的情况下处理触摸。