如何在Gridview按钮操作上使用Google Maps调用Mkmapkit [英] How Do I Call Mkmapkit Using Google Maps On Gridview Button Action

查看:121
本文介绍了如何在Gridview按钮操作上使用Google Maps调用Mkmapkit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在开发基于位置的项目,就像我的应用程序一样。我有两个视图,在第一个视图控制器中以编程方式创建网格视图(银行,自动取款机,咖啡馆等)。在第二个视图控制器中,创建了mkmapkit,使用谷歌地图显示用户当前位置。但我需要连接这两个视图,当我点击gridview银行按钮,通过传递字符串值银行导航到第二个视图,它应根据当前位置显示所有附近的银行。请帮帮我。



提前谢谢,

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,

推荐答案

不完全确定你的意思是什么gridview但我的假设是你的意思是一个UITableView。



所以你的应用程序需要的东西可能就像UITableViewController,点击UITableViewCell就可以看到不同的UIViewController执行。第二个UIViewController将有你的Map。



以下链接是一个快速演示,通过seque从UITableViewController传递数据到UIViewController,并通过一些修改,你可以让它做你想要的。< br $> b $ b

http://www.appcoda.com/storyboards-ios-tutorial-pass-data-between-view-controller-with-segue/ [ ^ ]
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/[^]


这篇关于如何在Gridview按钮操作上使用Google Maps调用Mkmapkit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆