title: Can't draw infowindows with google maps on swift
body: <p>I build an application for iOS that shows a map and differents markers, each one have to display on click a custom infowindow.</p>
  
  <p>Everything works fine, the map display my location and the markers display the default infowindow but if I implement the flollow code to make custom infowindow:</p>
  
  <pre><code>func mapView(mapView: GMSMapView, markerInfoWindow marker: GMSMarker) -&gt; UIView? {
      // 1
      NSLog("Marker infowindow es llamada")
      //let index:Int! = Int(marker.accessibilityLabel!)
      // 2
      let customInfoWindow = NSBundle.mainBundle().loadNibNamed("CustomIW", owner: nil, options: nil) as! CustomIW
      customInfoWindow.Nombre.text = marker.title
      customInfoWindow.direccion.text = marker.snippet
      return customInfoWindow
  }
  </code></pre>
  
  <p>I get the warning "Cast from '[AnyObject]!' to unrelated type 'CustomIW always fails'", and when i run the app, it crashes at the line of the loadNibName function.</p>
  
  <p>CustomIW.xib is the name of my custom InfoWindow view, and CustomIW.swift is the name of the class of my Custom infoWindow, the class only have the two conections to the two values that i want to display.</p>