我正在我的一个项目上,我似乎无法缩放添加到按钮上的图像。我想知道如何调整按钮中放置的图像的大小?This is within the image attribute and not the background image.
大卫
最佳答案
检查按钮的内容模式
UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];
[button setContentMode:UIViewContentModeScaleAspectFit];
关于ios - 在按钮内调整图像大小,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21559283/