UILable大小不按比率的时候怎么调整文本字体大小

1个回答

写回答

lily&yuan

2026-02-03 04:03

+ 关注

label.text = newText;CGRect bounds = label.bounds;bounds.size = [newText sizeWithFont:label.font];label.bounds = bounds;

举报有用(0分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号