Hi,
I am planning an App where one of the viewControllers is a MapViewController and I have a question about making the app effective and roboust.
The background:
Initially there is map displayed with say 100 pins (could show 3 different categories of pins). In the navigation there is a segmented control which will let the user to filter the pins and clicking one of the elements in the segmented control shows only the pins of one of the categories.
The question:
Which is the best way of dealing with this? Shall I define 4 different mapViews (one to show all the category-pins, 3 to show the respective category)? Or is it better to only have one mapView and replace the pins everytime the user choses a particular category? I suppose that both solutions would work? My goal is to make this app roboust and effective from a memory management point of view...
Any ideas?
Thanks in advance!
MACloop
I am planning an App where one of the viewControllers is a MapViewController and I have a question about making the app effective and roboust.
The background:
Initially there is map displayed with say 100 pins (could show 3 different categories of pins). In the navigation there is a segmented control which will let the user to filter the pins and clicking one of the elements in the segmented control shows only the pins of one of the categories.
The question:
Which is the best way of dealing with this? Shall I define 4 different mapViews (one to show all the category-pins, 3 to show the respective category)? Or is it better to only have one mapView and replace the pins everytime the user choses a particular category? I suppose that both solutions would work? My goal is to make this app roboust and effective from a memory management point of view...
Any ideas?
Thanks in advance!
MACloop