var shopInfoData : NSDictionary! @IBAction func snsBtn(sender: AnyObject) { var sns_url = shopInfoData.valueForKey("sns_url") as! String UIApplication.sharedApplication().openURL(NSURL(string:sns_url)!) } func returnJSON(data: NSDictionary, code: Int) { if NetworkCode().GET_SHOP_INFO==code { var returnData2 : NSDictionary = data.valueForKey("data") as! NSDictionary shopInfoData = returnData2