像Safari一样在主屏幕上添加图标 [英] Add icon to home screen like Safari
问题描述
我看到了Bug Me iPhone应用程序,并且对在主屏幕上添加图标的能力很感兴趣。我认为它的工作方式类似于Safari实现它的方式。
I saw the Bug Me iPhone app and was intrigued by the ability to add icons to the home screen. I figured it would work similar to the way that Safari achieves it.
这里有一个类似的问题,说不可能:
实施添加到主屏幕,ala Safari
There as a similar question here that said it was not possible: Implementing "Add to Home Screen", ala Safari
显然有一种方法,我找不到合适的地方。
Clearly there is a way and I am not looking in the right places.
还有其他人解决过吗?
推荐答案
你必须使用Safari。
You have to use Safari.
BugMe将注释保存在主屏幕上:
BugMe saves the note on home screen by:
- 将笔记上传到他们的服务器。
- 按
启动Safari -openURL:
带有服务器的URL。 - 在Safari中,用户被要求按+键添加特殊的
bugme://
链接到主屏幕。
- Upload the note to their server.
- Launch Safari by
-openURL:
with a URL to their server. - In Safari, the user is instructed to press the "+" key to add a special
bugme://
link to home screen.
如果只有文件化的方法可以使用。
There's no other ways if only documented methods can be used.
对于私有API,创建一个UIWebClip对象并使用 - [UIApplication addWebClipToHomeScreen:]
。
For private APIs, create a UIWebClip object and use -[UIApplication addWebClipToHomeScreen:]
.
这篇关于像Safari一样在主屏幕上添加图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!