开发者

UIButton resizes when I change font?

开发者 https://www.devze.com 2023-01-19 07:39 出处:网络
I have several UIButtons, I\'m trying to bulk change the font for all of them in InterfaceBuilder, but when I change the font, they auto-resize to the ori开发者_运维技巧ginal image dimensions instead

I have several UIButtons, I'm trying to bulk change the font for all of them in InterfaceBuilder, but when I change the font, they auto-resize to the ori开发者_运维技巧ginal image dimensions instead of what I had them set to, screwing up the layout. I would like to avoid having to resize and move everything around again any time I change the font. I could just set the font in a loop in code, but it seems redundant.

Is there a setting to stop this from happening?


This issue doesn't seem to occur in Xcode 4.0 or above.

Should anyone still be using a lesser version of Xcode I would suggest updating.

0

精彩评论

暂无评论...
验证码 换一张
取 消