How do I go about placing an object in a #define statement like this:
#define PlacesURL @"https://maps.googleapis.com/maps/api/place/search/xml?location=34.0522222,-118.2427778&radius=500&types=**bar**&sensor=false&key=MyAPIKey"
so, in place of bar I want to do something like %@ but am not sure how to store the %@ object. Also, where would I store the object – above the #define directive? I want to store bar, restaurants, coffee shops etc… for a Google Places Api search from an iOS app.
From what I understand, you have two options:
or
The second one is probably what you want, though both are a little pointless…