可以加个content size fitter组件,那他就会自己适应长度了,其他锚点之类的设置好就不用自己算大小了 转载于:https://www.cnblogs.com/feiyanstudio/articles/7326343.html