Closed PreAnti closed 7 years ago
你好,如上图所示是你们SDAutoLayoutDemo里DemoVC4.m里的源码,红框里是我自己加进去的,但是运行起来后文字并没有居中显示。如下图所示:
sd中富文本布局用到了系统的sizeToFit函数,label自身的宽度会根据文本实际宽度调整导致看起来文字好像不居中,可以加上minWidth约束限制文本的宽度
你好,如上图所示是你们SDAutoLayoutDemo里DemoVC4.m里的源码,红框里是我自己加进去的,但是运行起来后文字并没有居中显示。如下图所示: