0

Our UIView contains a MapBox map. At certain moments during our apps lifespan we display a UIView on top of the Map.

This view had a transparant background and a couple of controls inside it. What we want is to be able to drag the map on the spots where the view is transparent. (It should basically pass through the gestures to the view below it..which is the map).

To get a basic picture of what we try to accomplish: think of a map and above it is a view which shows a big + sign. What we want is when we drag the actual sign...nothing happens. But when you drag in the empty corners, it should drag the map.

Any ideas how to accomplish that?

4

1 回答 1

0

签出-[UIView userInteractionEnabled]并将其设置NO为透明视图。请务必将其设置YES为控件子视图。这应该够了吧。

于 2015-01-20T23:22:05.803 回答