简体   繁体   中英

How to open app from safari (swift)

I'm trying to write a webapp using swift ,which needs the link from safari. How can I edit the "share" button within the safari, so that I can open my app and get the URL of the current webpage.

The only possibility to share the URL from Safari in/with your app is to use the Share App Extension.

It will look something like this:

在此处输入图片说明

Here is a nice tutorial on how to achieve this: http://www.appcoda.com/ios8-share-extension-swift/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM