私はSwiftで初めて作業しています。私は以下のようにWeb APIを起動しています。データは正常に取得されていますが、何も実行できません。NSURLConnection.sendAsynchronousRequest black。私はsegueを実行するメソッドを書いた後、結果を印刷していますが、別のViewControllerを押さずに、同じView Controllerにとどまります。前もって感謝します。SwiftでAsynchronusRequestの後に何も実行できません
NSURLConnection.sendAsynchronousRequest(request1, queue: queue, completionHandler:{ (response: NSURLResponse?, data: NSData?, error: NSError?) -> Void in
//SwiftLoader.hide()
do {
if let jsonResult = try NSJSONSerialization.JSONObjectWithData(data!, options: []) as? NSDictionary {
SwiftLoader.hide()
print("ASynchronous\(jsonResult)")
self.performSegueWithIdentifier("Home", sender: self)
}
self.hideView()
}
catch let error as NSError
{
print(error.localizedDescription)
}
})
私は理解できませんでしたあなたはもう少し教えてください –