作者:无石笑_987 | 来源:互联网 | 2023-08-19 18:49
I have a PDF file in my image assets file in my Xcode project. I'm trying to create a bar button item that uses that PDF image. But whenever I set the image property in Interface Builder to the image it takes over most of my tab bar and removes the title.
我的Xcode项目中的图像资源文件中有一个PDF文件。我正在尝试创建一个使用该PDF图像的条形按钮项。但每当我在Interface Builder中将图像属性设置为图像时,它都会占用我的大部分标签栏并删除标题。
I have a left bar button item with the system item stop. So it looks like an X
icon. I would like to do the same thing on the right side with my settings PDF image I have.
我有一个左栏按钮项目,系统项目停止。所以它看起来像一个X图标。我想在右侧用我的设置PDF图像做同样的事情。
Is there a way to fix this sizing issue within Interface Builder? If not how can I fix this in code?
有没有办法在Interface Builder中修复此大小调整问题?如果没有,我怎么能在代码中解决这个问题?
1 个解决方案