美文网首页
iOS 开发 跳转到抖音

iOS 开发 跳转到抖音

作者: East_Coast | 来源:发表于2021-10-08 19:33 被阅读0次
    ///跳转抖音商品详情
    let promotion_id = "xxxxxxxxxx"
    let content = "snssdk1128://ec_goods_detail?promotion_id=\(promotion_id)"
    guard let url = URL(string: content) else { return }
    UIApplication.shared.open(url, options: [:]) { _ in }
    
    ///跳转抖音视频
    let content = "snssdk1128://aweme/detail/xxxxxx"
    guard let url = URL(string: content) else { return }
    UIApplication.shared.open(url, options: [:]) { _ in }
    

    相关文章

      网友评论

          本文标题:iOS 开发 跳转到抖音

          本文链接:https://www.haomeiwen.com/subject/fvgxoltx.html