Select a column when tapping the inline view

I have a custom table with a built-in MapView showing a small area. When the user selects a cell, I want to click on a new view with a larger map display and get additional information, for example, the distance from where you are, what type of map, etc.

If I leave a small marker around my map view, the user can click on this field to select a cell, but how can I make a cell selected if they click inside mapview?

Regards,
-Vegar

+3
source share
2 answers

, hitTest, UIView

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event

, pointInside: withEvent: subview, , subview . pointInside: withEvent: YES, subviews ; . , , .

+7

MapView userIteractionEnabled NO

+1

Source: https://habr.com/ru/post/1732027/


All Articles