I've been looking into the url scheme hooks and vine://
opens the app just fine, but I haven't been able to find a way to open a video in Vine or even open the app right to it's camera.
我一直在寻找url scheme hooks和vine://打开应用程序就好了,但是我还没有找到在Vine中打开视频的方法,甚至无法打开应用程序直接使用它的相机。
Have any of you been able to figure this out? Doesn't seem to be much help online
你们有没有能够弄明白这一点?在网上似乎没什么帮助
2 个解决方案
#1
2
Vine would have to provide a URL Scheme to open the camera directly. There doesn't seem to be any documentation on Vine's URL Schemes so I'd imagine it is not possible.
Vine必须提供URL Scheme才能直接打开相机。似乎没有关于Vine的URL方案的任何文档,所以我认为这是不可能的。
You can open Vine to a particular video or profile though. For example:
您可以打开Vine到特定的视频或个人资料。例如:
Video:
let url = NSURL.init(string: "vine://post/<PostID>")
if UIApplication.sharedApplication().canOpenURL(url!) {
UIApplication.sharedApplication().openURL(url!)
}
Profile:
let url = NSURL.init(string: "vine://user/<UserID>")
if UIApplication.sharedApplication().canOpenURL(url!) {
UIApplication.sharedApplication().openURL(url!)
}
You also need to add vine
to your info.plist's LSApplicationQueriesSchemes:
您还需要在info.plist的LSApplicationQueriesSchemes中添加vine:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>vine</string>
</array>
#2
-1
I use an app that opens up url schemes and I entered
我使用的应用程序打开了url方案,我进入了
Vine://camera
I'm not sure if it's only for that specific app (Dashboard Free All In One) but when i entered the url scheme, it opened up the Vine app and went right to the camera. Hope this helps! :)
我不确定它是否仅适用于特定的应用程序(Dashboard Free All In One)但是当我进入url方案时,它打开了Vine应用程序并直接进入相机。希望这可以帮助! :)
#1
2
Vine would have to provide a URL Scheme to open the camera directly. There doesn't seem to be any documentation on Vine's URL Schemes so I'd imagine it is not possible.
Vine必须提供URL Scheme才能直接打开相机。似乎没有关于Vine的URL方案的任何文档,所以我认为这是不可能的。
You can open Vine to a particular video or profile though. For example:
您可以打开Vine到特定的视频或个人资料。例如:
Video:
let url = NSURL.init(string: "vine://post/<PostID>")
if UIApplication.sharedApplication().canOpenURL(url!) {
UIApplication.sharedApplication().openURL(url!)
}
Profile:
let url = NSURL.init(string: "vine://user/<UserID>")
if UIApplication.sharedApplication().canOpenURL(url!) {
UIApplication.sharedApplication().openURL(url!)
}
You also need to add vine
to your info.plist's LSApplicationQueriesSchemes:
您还需要在info.plist的LSApplicationQueriesSchemes中添加vine:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>vine</string>
</array>
#2
-1
I use an app that opens up url schemes and I entered
我使用的应用程序打开了url方案,我进入了
Vine://camera
I'm not sure if it's only for that specific app (Dashboard Free All In One) but when i entered the url scheme, it opened up the Vine app and went right to the camera. Hope this helps! :)
我不确定它是否仅适用于特定的应用程序(Dashboard Free All In One)但是当我进入url方案时,它打开了Vine应用程序并直接进入相机。希望这可以帮助! :)