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使用 autolayout sizeToFit,可以有不同的行数,我对这个标签使用属性字符串,不同的参数包括NSParagraphStyle?
UILabel
NSParagraphStyle
如果您正在使用情节提要,您可以转到属性检查器并选择:“最小字体大小”并指定该值...这样,如果必须在标签上的文本太大,它将缩小...我不知道您是否使用故事板,但这对我有用。
问候