objective c - The app gets frozen when returning a custom UIView as a marker infoWindow (Google Maps iOS SDK) -


i have custom uiview (with xib, .h , .m files) , want gmsmarker's info window. when return custom uiview in -mapview: markerinfowindow: method, app gets frozen , stuck (it's not crashing).

my code is:

-(uiview *)mapview:(gmsmapview *)mapview markerinfowindow:(gmsmarker *)marker {     //creating "infowindow"(infowindow) , setting nib file called "infowindow"     custommarkerinfowindow *infowindow=[[[nsbundle mainbundle] loadnibnamed:@"custommarkerinfowindow" owner:self options:nil] lastobject];      //returning "infowindow"(infowindow)     return infowindow; } 

i have no idea why it's freezing , know sure code worked in past, can't understand what's wrong.

can me this?

thank you!

put method in custom view implementation file

-(void)didmovetosuperview{     self.superview.autoresizessubviews = no; } 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -