CODEX – 8 ADD TEXTFIELD IN GOOGLE MAP SWIFT IOS

ADD TEXTFIELD IN GOOGLE MAP SWIFT 

  • TO ADD BUTTON IN ABOVE MAP WRITE CODE BELOW.
  • mapView.addSubview.(your button )
  • YOU CAN ALSO ADD MANY SUBVIEW LIKE TEXTFIELD LABEL AND SO ON
  • ADD BELOW CODE INTO YOUR CONTROLLER AND RUN.
  • YOUR UITEXTFIELD IS NOW RUNNING ABOVE GOOGLE MAP.
for gestureRecognizer: UIGestureRecognizer in mapView_.gestureRecognizers! {
print("mapview recognizer \(gestureRecognizer)")
if !(gestureRecognizer is UILongPressGestureRecognizer) {
mapView_.removeGestureRecognizer(gestureRecognizer)

}
}

Leave a Reply

Your email address will not be published. Required fields are marked *