How to Call API using AFNetwork in Swift
Install Pod file on your Project open this link for install pod file : install pod in mac Write this code on your Project and Used it. import UIKit class AppHandler: NSObject { class var sharedInstance: AppHandler { struct Static { static var onceToken: Int = 0 static var instance = AppHandler() } return Static.instance } let manager = AFHTTPRequestOperationManager(); func checkForNewUpdates(){ let parameters = NSMutableDictionary(); parameters.setObject("1", forKey: "U_ID" as NSCopying); AppHandler.sharedInstance.manager.post( "Your URL Type HERE", parameters: parameters, success: { (operation,responseObject) in Z.log("JSON: " + (responseObject as AnyObject).description) if let errorResponse = (responseObject as AnyObject).value(forKeyPath: ...