swift kod ile view controller

let storyboard = UIStoryboard(name: “Main”, bundle: nil) let viewcontroller = storyboard.instantiateViewController(withIdentifier: “newAccount”) as? newAccountViewController present(viewcontroller!, animated: true, completion: nil) burda unutulmamasi gereken acilmak istenen viewcontroller in Identity tabinin altinda STROYBOARD ID kismina “herhangi bir title” yazip onu yukarda “newAccount kismina

Swift Alamofire ve SwiftlyJson kullanimi

<pre lang=”swift” line=1> Alamofire.request(“http://api.androidhive.info/contacts/”).responseJSON { (responseData) -> Void in if((responseData.result.value) != nil) { let swiftyJsonVar = JSON(responseData.result.value!) if let resData = swiftyJsonVar[“contacts”].arrayObject { self.arrRes = resData as! [[String:AnyObject]] } if self.arrRes.count > 0 { self.tblJSON.reloadData() } } } </pre>