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.
我有一个视图(MKMapView),在它上面我有一个透明的视图,可以在上面绘制不同的东西。现在我想为用户提供删除东西的选项,以便在删除的地方看到“背景视图”(mapView)。你认为有可能吗?
谢谢
您可以将此视图的 alpha 设置为 0.0f。如果你必须擦除,你可以调用[self setNeedsToDisplay]。这将重绘您的石英元素。在那里您可以添加一些标志,这将允许您仅在需要时绘制。