struct Location {
let location: CLLocationCoordinate2D
init() {
self.location = CLLocationCoordinate2D(latitude: 37.332331, longitude: -122.031219)
}
}
class ViewController: UIViewController {
let v = VenueService()
let l = Location()
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func testJSON(sender: AnyObject) {
v.performVenueLocationRequest(l.location, identifier: "4d4b7105d754a06374d81259", completion: { arrdict, err in
dispatch_async(dispatch_get_main_queue(), {
if let err = err {
println("if let \(err)")
} else {
if let dict = dict {
println("else: \(arr!dict)")
}
}
})
})
}
}
lightning_missile
- 2.8k
- 2
- 24
- 42