用于UIWebView的移动Safari风格的后退按钮? [英] Mobile Safari-style back button for UIWebView?

查看:148
本文介绍了用于UIWebView的移动Safari风格的后退按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找到任何排序UIBarButtonSystemItem代表Mobile Safari中的后退按钮。我希望我的UIWebView控件看起来就像Mobile Safari中的控件一样有意义。最好的解决方案是截图UIBarButtonSystemItemPlay(与前进按钮相同的图像)并翻转吗?

I haven't been able to find any sort UIBarButtonSystemItem representing tha "Back" button in Mobile Safari. I want my UIWebView's controls to look just like the ones in Mobile Safari so it makes sense. Would the best solution be to just screenshot UIBarButtonSystemItemPlay (same image as the Forward button) and flip it?

谢谢。

推荐答案

我认为正确的方法是尝试在某处找到原始图标(尝试终端,并在您的/ Developer目录中找到)。

I think the right move is to try and find the raw icon somewhere (try Terminal, and find in your /Developer directory).

可能

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/Applications/WebSheet.app/ArrowBack.png

是正确的文件。

只是截取屏幕截图不起作用,因为工具栏图标基于alpha级别而不是颜色。如果您抓住屏幕截图并将其翻转,您最终会得到一个方形的按钮。

Just taking a screenshot isn't going to work, as the toolbar icons are based on alpha levels rather than colours. If you grab a screenshot and flip it, you'll just end up with a solid square for your button.

这篇关于用于UIWebView的移动Safari风格的后退按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆