Disha Ladani
Disha Ladani

Reputation: 72

iOS App crashed when continuous zoom in zoom out in google map

I am in trouble. I have used Google map in iOS application. When I continue doing zoom in - zoom out in map till 1 to 1.5 minutes, it uses more memory and then it crash. I have attached crash screen shot. Please help me.

When app crashed, I got error like this

Upvotes: 0

Views: 420

Answers (1)

Palanichamy
Palanichamy

Reputation: 96

Just Clear and remove the google map view in the following viewWillDisappear method.

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated] ;
    [m_mapView clear];
    [m_mapView removeFromSuperview] ;
    m_mapView = nil ;
}

Upvotes: 1

Related Questions