There is no native way in the Google Maps API iOS SDK. As has been mentioned in other answers, it's been a requested feature for years.
One thing to remember is that Google Maps APIs are mostly focused on creating maps: that's a primary goal.
You have to use the URL-based API calls or some other service. For instance, a different service called SmartyStreets has an iOS SDK that has native support for forward geocoding. Here's the example code for Swift from their iOS SDK documentation page:
// Swift: Sending a Single Lookup to the US ZIP Code API
package examples;
import Foundation
import SmartystreetsSDK
class ZipCodeSingleLookupExample {
func run() -> String {
let mobile = SSSharedCredentials(id: "SMARTY WEBSITE KEY HERE", hostname: "HOST HERE")
let client = SSZipCodeClientBuilder(signer: mobile).build()
// Uncomment the following line to use Static Credentials
// let client = SSZipCodeClientBuilder(authId: "YOUR AUTH-ID HERE", authToken: "YOUR AUTH-TOKEN HERE").build()
let lookup = SSZipCodeLookup()
lookup.city = "Mountain View"
lookup.state = "California"
do {
try client?.send(lookup)
} catch let error as NSError {
print(String(format: "Domain: %@", error.domain))
print(String(format: "Error Code: %i", error.code))
print(String(format: "Description: %@", error.localizedDescription))
return "Error sending request"
}
let result: SSResult = lookup.result
let zipCodes = result.zipCodes
let cities = result.cities
var output: String = String()
if (cities == nil && zipCodes == nil) {
output += "Error getting cities and zip codes."
return output
}
for city in cities! {
output += "\nCity: " + (city as! SSCity).city
output += "\nState: " + (city as! SSCity).state
output += "\nMailable City: " + ((city as! SSCity).mailableCity ? "YES" : "NO") + "\n"
}
for zip in zipCodes! {
output += "\nZIP Code: " + (zip as! SSZipCode).zipCode
output += "\nLatitude: " + String(format:"%f", (zip as! SSZipCode).latitude)
output += "\nLongitude: " + String(format:"%f", (zip as! SSZipCode).longitude) + "\n"
}
return output
}
}
Full disclosure: I have worked for SmartyStreets.