Skip to main content

BEST iOS DATA SWIFT



http://iostreasures.blogspot.com/2019/02/mqtt.html

Comments

Popular posts from this blog

Google Maps Custom Annotation

                 let latitude = ( latArr . object (at: 0 ) as ! NSString ). doubleValue         let longitude = ( longArr . object (at: 0 ) as ! NSString ). doubleValue                  let camera = GMSCameraPosition . camera (withLatitude: latitude, longitude: longitude, zoom: 12 )         self . mapView . camera = camera                  mapView . isMyLocationEnabled = true         mapView . settings . myLocationButton = true         for (index, _ ) in latArr . enumerated () {                          let latitude = ( latArr . object (at: index) as ! NSString ). doubleValue             let longitude = ( longArr . object (at: index) as ! NS...

API Calling Example

import  Foundation import  Alamofire class  HomeViewModel {           let  sharedInstance = Connection()      var  reloadHandler:  DataHandler  = { }      typealias  DataHandler = () ->  Void      init () { }           //--------------------------------------------------      // MarK : fetchInitialSetup    API Integration      //--------------------------------------------------      func  fetchInitialSetup(success: @escaping  ( GetLocationAndDevicesModel ) ->  Void , failure: @escaping  ( Error ) ->  Void )      {          let  URL = AddDeviceList().getUrlString(url: .CREATE_API)                   let  headers :...