Converting GoogleMapKit To ARC

Recently I took the time to create a location based app that would simply get my location and show nearby places… Facebook has this feature built in. For this project I had to use Google Places API.

While doing my research, I stumbled upon Google Places Library by Joshua Drew on Github. I decided to refactor his project by converting it to Objective-C ARC. As I expected, I was greeted with errors:

After inspecting the original implementation of his method in GTMNSString+URLArguments class:

I had to modify it:

One more thing… After modifying the implementation, I had to change property type of a delegate in GooglePlacesConnection.h from ‘weak’ to a ‘assign’. After that was done, the conversion to ARC went smoothly.

Hope this helps.

Converting GoogleMapKit To ARC