I've been struggling with this for a few weeks now on my own, and now I am looking for help. I have a list of cities in a Table View. When the user selects a row (a city) they are pushed to the next screen which will have a button. When the user presses the button they will be calling a number associated with the city. It seems basic enough anyway.
I have the code to dial a number when the button is pressed. However I cannot seem to figure out how to simplify this process. I would think I would have to use a variable. My NSMutable array has the city name and phone number for each city in my table view controller implementation file (I am not using a plist). Is there a way I can do this without typing the whole UIApplication sharedApplication code for every city? I have about 75 of them in my table.
A YouTube video on this would be awesome!!!
I'm using Xcode 4.3.2, with storyboards and ARC.