我有一个 iPhone 应用程序,它使用在 MapView 上拖动注释,这可能是 iPad 吗?

发布于 2024-09-26 03:26:56 字数 356 浏览 2 评论 0原文

我正在尝试使用:

(void)mapView:(MKMapView *)mapView annotationView
             :(MKAnnotationView *)annotationView didChangeDragState
             :(MKAnnotationViewDragState)newState fromOldState
             :(MKAnnotationViewDragState)oldState

并且在为 iPad 构建此程序时遇到错误,但我后来意识到它是 iOS 4 特定的,因此它无法在 iPad 上运行。有没有类似的东西可以用于 iPad?

I am trying to use:

(void)mapView:(MKMapView *)mapView annotationView
             :(MKAnnotationView *)annotationView didChangeDragState
             :(MKAnnotationViewDragState)newState fromOldState
             :(MKAnnotationViewDragState)oldState

And was getting errors when building this for the iPad, but I have since realised that it is iOS 4 specific, so it won't work on the iPad. Is there anything similar that I can use for the iPad?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千鲤 2024-10-03 03:26:56

1°) 你应该用 < 包裹你的代码预>< /预>或者执行 crt+k

2°)您可以等待目前处于 beta2 状态的 iPad 版 iOS 4.2。 1个月后我将被释放。或者你可以购买一个苹果开发者帐户(100 美元/年),然后下载 Beta SDK :-)

我不知道你还能做什么,但祝你好运!

1°) You should wrap your code with < pre >< /pre > or do a crt+k

2°) You can wait the iOS 4.2 for iPad that is currently under beta2. I will be released in 1 month. Or you can buy a apple developer account (100$ / year) and then download the Beta SDK :-)

I don't know what else you could else, but good Luck !

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文