iOS 开发 跳转到抖音

///跳转抖音商品详情
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 开发 跳转到抖音)