[英]Add icon to home screen like Safari
I saw the Bug Me iPhone app and was intrigued by the ability to add icons to the home screen. 我看到了Bug Me iPhone应用程序,并对能够在主屏幕上添加图标感到好奇。 I figured it would work similar to the way that Safari achieves it.
我认为它的工作方式类似于Safari实现它的方式。
There as a similar question here that said it was not possible: Implementing "Add to Home Screen", ala Safari 这里有一个类似的问题,说不可能: 实现“添加到主屏幕”,ala Safari
Clearly there is a way and I am not looking in the right places. 显然有一种方法,我不是在寻找合适的地方。
Has anyone else worked it out yet? 还有其他人解决过吗?
You have to use Safari. 你必须使用Safari。
BugMe saves the note on home screen by: BugMe通过以下方式将注释保存在主屏幕上:
-openURL:
with a URL to their server. -openURL:
启动Safari -openURL:
使用其服务器的URL。 bugme://
link to home screen. bugme://
链接到主屏幕。 There's no other ways if only documented methods can be used. 如果只能使用记录的方法,则没有其他方法。
For private APIs, create a UIWebClip object and use -[UIApplication addWebClipToHomeScreen:]
. 对于私有API,创建一个UIWebClip对象并使用
-[UIApplication addWebClipToHomeScreen:]
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.