iPhone SDK - Add a “Add to Home Screen” button in a UIWebView

后端 未结 3 823
南笙
南笙 2020-12-06 07:30

I have a native iPhone app, which has a UIWebView component to it. I am trying to see if I can replicate the \"Add to Home Screen\" button that

3条回答
  •  醉话见心
    2020-12-06 07:51

    You can use UIActivityViewController with your url as the activity items

    NSArray *activityItems = @[title, url];
    

    And then you can exclude the activities that you don't want. I think it´s the only way for now.

提交回复
热议问题