[MapKit]实现委托方法
RegionDidChangeAnimated 是一个立即调用的委托方法。 我想在调用此方法时将 BOLLEAN 变量设置为 NO,所以我实现了它:
-(void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
{
shouldAdjustZoom=NO;//this is the variable
}
我对吗?
the regionDidChangeAnimated is a delegate method which gets called instantaneously.
I want to set a BOLLEAN variable to NO when this method will be called, so i implement it :
-(void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
{
shouldAdjustZoom=NO;//this is the variable
}
am i right ??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当区域更改时会调用此方法,如果添加参数,xcode 将找不到该方法并且不会进入该方法,因为它没有好的名称。
我想是的。
This method is called when the region has been changed, if you add a parameter, xcode will not find the method and will not enter it because it doesn't have the good name.
I think so.