Skip to main content

https://github.com/ioscreator/ioscreator

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...

Common API Request Class

// //    Connection.swift //    Norwood // //    Created by Praveen Reddy on 10/01/19. //    Copyright © 2019 Apple. All rights reserved. // import  Foundation import  Alamofire import  SwiftyJSON class  Connection {           func  requestPOST( _  url:  String , params :  Parameters ?, headers :  HTTPHeaders ?, success: @escaping  ( Data ) ->  Void , failure: @escaping  ( Error ) ->  Void )      {                   print( "URL = " ,url)          print( "Parameter = " ,params!)                   //          if Connectivity.isConnectedToInternet() //          {              i...