I have a map and some buttons inside main UIViewController and a popup view inside child UIViewController. The problem is that main view of child UIViewController preventing main buttons and map from receiving any touch event!
the structure as following:
- Main UIViewController
- view
- MapView
- UIButton
- view
- Child UIViewController
- view . <-- this prevents main view controllers from receiving any touch events
- popup UIView
- buttons
- view . <-- this prevents main view controllers from receiving any touch events
Edit:
this code pass all events but I don't need to stop popup UIView and buttons events
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
print("Passing all touches to the next view (if any), in the view stack.")
return false
}