更新时间:2023-01-01 16:42:56
进入上述屏幕的唯一方法是先将视频保存在库中,然后使用未记录的挂钩instagram://library
传递资产info.plist
中添加instagram
查询方案.
The only way to get to the screen illustrated above is to save first the video in the library and then use the undocumented hook instagram://library
passing the asset localIdentifier
. Don't forget to add instagram
query scheme in the info.plist
.
if UIApplication.shared.canOpenURL("instagram://app") { // has Instagram
let url = URL(string: "instagram://library?LocalIdentifier=" + videoLocalIdentifier)
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler:nil)
}
}