Help us understand the problem. What is going on with this article?


More than 5 years have passed since last update.



import Alamofire
import SwiftyJSON


class ViewController: UIViewController {


let urlPath = ""//アプリIDは仮(Twitterになっている)

        Alamofire.request(.GET, urlPath).responseJSON { (request, response, responseData, error) -> Void in
            if let data: AnyObject = responseData {
                var resJson: AnyObject = data
                var results: AnyObject = resJson["results"]!!
                var latestVersion: AnyObject = results[0]["version"]!!
                let version: AnyObject! = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString")

                if latestVersion !== version {
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away