Search code examples
iosobjective-cuiviewuitextfieldgoogle-maps-sdk-ios

UITextField inside a custom UIView (InfoWindow) - The keyboard doesn't show up when I select the input


I'm making a custom InfoWindow for my markers. I followed the official Google Tutorial : Youtube link

Here is my .xib

enter image description here

User interaction is enabled...

My infoWindow show up above the marker as you can see on the screenshot : enter image description here

But when I click on the pseudo input, the keyboard doesn't show up. Nothing happens!

I don't understand why it does that, because the user interaction is enabled...

The full View Tree : enter image description here


Solution

  • From https://google-developers.appspot.com/maps/documentation/ios/marker?hl=ar-SA#info_windows

    Note: The info window is rendered as an image each time it is displayed on the map. This means that any changes to its properties while it is active will not be immediately visible. The contents of the info window will be refreshed the next time that it is displayed.

    Kind of lame, imho, especially if you have implemented the google maps js API, which provides complete control within any custom infoWindow.

    I believe you will need to wire up an entirely separate overlay to make it interactive.