1
공유 버튼이있어서 앱 스토어에서 내 게임으로 리디렉션되는 공유 텍스트에 대한 링크를 추가하고 싶지만 내 앱이 App Store에 없기 때문에 프로그래밍 방식으로 생성해야합니다. 어떻게해야합니까?App Store에서 내 게임으로 리디렉션되는 링크를 만드는 방법은 무엇입니까?
func share() {
let highscore = UserDefaults.standard.integer(forKey: "highscore")
let activityVC = UIActivityViewController(activityItems: ["I just scored a new Highscore of \(highscore), can you beat me? /*Here should be the link to the game on the App Store*/"], applicationActivities: nil)
activityVC.popoverPresentationController?.sourceView = self.view
self.present(activityVC, animated: true, completion: nil)
}
감사 및 링크 작동하는지 테스트하는 방법은 무엇입니까 ? –
나는 링크를 클릭하면 앱 스토어를 열어 "App not found"와 같은 말을 할 것이라고 확신하지만 그것이 작동하고 있음을 의미한다. –