Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张动物园地图,上面有定位动物的别针。放大地图。点击一个图钉,然后点击标注,它会将用户带到带有动物图片和描述/叙述的视图。该视图上的“地图”按钮将用户返回到原始缩放级别的动物园地图。有谁知道在最后一个缩放级别/位置返回地图的方法?
您可以使用
[self.mapView setRegion:adjustedRegion animated:YES];
功能。因此,您要做的是,在地图视图即将消失时保存“区域”属性,以便在地图视图出现时再次设置它。