I have a button on my iOS app that will launch a third party app via deeplinking, but if said app is not installed, the button will not do anything.
How can I check if the app is installed first, if not, prompt the user to download it?
Button code:
@IBAction func didTapEdmodo(sender: AnyObject) {
UIApplication.sharedApplication().openURL(NSURL(string: "edmodo://")!)
}