Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am working on a location based project like around me app. I have two views, in first view controller created grid view programatically(banks,atms,cafes etc.). and in second view controller, created mkmapkit showing the user current location using google maps. but i need connect these two views, when i click on the gridview banks button, navigates to the second view by passing string value "bank" and it should display all nearby banks depending on the current location. Please help me out.

Thanks in advance,
Posted
Comments
Richard MacCutchan 25-Aug-14 7:03am    
Help with what? All you have told us is what you want your application to do. Now you need to explain what part of your code is not working.

1 solution

Not entirely sure what you mean by a gridview but my assumption is you mean a UITableView.

So what your application will entail is probably something like a UITableViewController and on click of a UITableViewCell a seque to a different UIViewController is performed. The second UIViewController will have your Map on it.

The following link is a quick demo of passing data via seque from a UITableViewController to a UIViewController and with some modifications you can probably get it to do what you want.

http://www.appcoda.com/storyboards-ios-tutorial-pass-data-between-view-controller-with-segue/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900