sajithhhhh
sajithhhhh

Reputation: 11

High memory usage to load google map in iOS app

I am trying to develop an uber like iOS app. I just created a login page and map loading page. I have integrated google map and google places API. When running my app in simulator ,the debug navigator shows that the memory usage is around 300 MB. is there any memory leak in my app? or is 300 MB needed to load google map?

Upvotes: 1

Views: 1047

Answers (2)

Alireza12t
Alireza12t

Reputation: 367

it's completely normal but don't forget to do this in viewDidDisapper to make memory usage lesser

        mapView.clear()
        mapView.removeFromSuperview()
        mapView = nil

Upvotes: 0

Teetz
Teetz

Reputation: 3795

Like Nathan mentioned 300 MB for the google map is pretty normal. The important thing is that this memory is getting released when you don't show the map anymore. If it is getting released and memory usage falls after not showing the map anymore, everything is fine i guess.

Upvotes: 3

Related Questions