导航栏背景图片
如何将图像设置到导航栏的背景中,以便该图像也位于后退按钮的背景中? 现在我有一个 320 像素的图像,但它缩小了该图像,因此左侧后退按钮是标准按钮,右侧有 5 个像素为标准蓝色。 我希望这个图像超过燃料宽度,也许我稍后会做一个更暗的后退按钮。
how can i set an image into the background of the navigation-bar, so that is also in the background of the back-button ?
now i have an image with a with of 320 pixels, but it shrinks that image so, that the left back-button is the standard-button and on the right side there are 5 pixels in the standard-blue.
i want that this image is over the fuel width and maybe i will do a darker back-button later.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了这个片段。
所以图像在每个导航栏上作为背景,我可以将旧图像设置为中间的视图。
也许我不明白为什么它有效,但它有效。抱歉这个愚蠢的问题。
编辑: 对于 iOS 5
I have found this snippet.
so the image is on every navigationbar as background and i can set the old image as the view in the middle.
maybe I dont understand why that works, but it works. sorry for the dumb question.
EDIT: For iOS 5