UIView
をxibファイルからロードして、GMSMarker
インフォメーションウィンドウにしようとしています。それは後に、私は再び開く必要があり、再びそれを使用して起動する(GMSMarker infoWindowがアプリケーションを表示してフリーズしない
-(UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker
{
//Creating "infoWindow"(infoWindow) and setting it with nib file called "infoWindow"
CustomMarkerInfoWindow *infoWindow=[[[NSBundle mainBundle] loadNibNamed:@"CustomMarkerInfoWindow" owner:self options:nil] firstObject];
//Setting "infoWindow"(infoWindow)'s storeNameLabel's text to "marker"(customMarker)'s title
infoWindow.storeNameLabel.text=((customMarker*)marker).title;
//Setting "infoWindow"(infoWindow)'s storeAddressLabel's text to marker's address
infoWindow.storeAddressLabel.text=((customMarker*)marker).address;
return infoWindow;
}
が、私はマーカーをクリックすると情報ウィンドウが表示され、すべてのアプリがフリーズしません:私はそのようにそれをやろうとしています私はマルチタスキングからそれを殺していた)。
注:それが起こっている理由
-(UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker
{
UIView *myView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
myView.backgroundColor=[UIColor blueColor];
return myView;
}
誰もが知っている:私はそれがすべて(定期UIView
を作成する)正常に動作していますこのようことを行う場合には?私は1週間以上それを理解することはできません!
私は本当に誰かがここで私を助けることができる場合、私は本当にありがとう!
ありがとうございます!!!!私は長い間問題を探していた!ありがとうございました!! –
歓迎です:)この問題はGoogleに提出しました:https://code.google.com/p/gmaps-api-issues/issues/detail?id=9664 – gaskbr