Hello, few days ago i add some function that allow the user to navigate to location via Waze app.
The feature was worked fine for few days and this morning its stop working for some reason :-(
The code was not changed its suddenly dont work anymore. The button doesnt response to any click
@IBAction func Navvvv(sender: AnyObject) {
if let wazeappURL = NSURL(string: "waze:/
var latitude:Double = currentProduct!.BusLatitude
var longtitude:Double = currentProduct!.BusLongtitude
println("llallll")
let canOpen = UIApplication.sharedApplication().canOpenURL(wazeappURL)
var appURL:NSURL = NSURL(string:"waze:/
UIApplication.sharedApplication().idleTimerDisabled = true
println("\(appURL)")
}
else{
var appURL:NSURL = NSURL(string: "http:/
UIApplication.sharedApplication().openURL(appURL)
UIApplication.sharedApplication().idleTimerDisabled = true
}
}
Is someone know what could be the reason its stop responding?