MKPolylineView initWithPolyLine:在iOS 7中已弃用 [英] MKPolylineView initWithPolyLine: is deprecated in iOS 7

查看:155
本文介绍了MKPolylineView initWithPolyLine:在iOS 7中已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下错误:initWithPolyline:不推荐使用:首先在iOS 7.0中不推荐使用

I am getting the following error: initWithPolyline: is deprecated: first deprecated in iOS 7.0

MKPolylineView *lineView = [[MKPolylineView alloc] 
       initWithPolyline:overlay];

代替它的替代方法是什么?

What is the replacement method of instead of this ?

推荐答案

请参见

See the documentation for initWithPolyline:. Read the Deprecation Statement which says to use an MKPolylineRenderer object instead.

这篇关于MKPolylineView initWithPolyLine:在iOS 7中已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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