Hi,
I’m working on a mapView app which shows bunch of markers and then when a marker is tapped it goes to a detail view for that marker. I implemented a simple storyboard approach, one scene with the map and other scene with the detail view. So far so good.
Initially I set it such that the map would be removed before going to the detail view. That also meant each time the user wants to go back and look at another marker the map had to be re-created which was very time consuming… AKA slow app syndrome! Not good.
So I decided to try something different. I am now hiding the map using map.alpha = 0 on the exitScene() and then going to the detail view scene. On return to the map scene I simply reverse the visibility using map.alpha = 1. I don’t reload or recreate the map each time so in theory I think I should be fine.
I know that Corona SDK display objects can’t be positioned over native objects such as mapView or webView etc but when the native objects are hidden the Corona SDK display objects seem to show well.
I’m just wondering if I’m overlooking any issues with this approach. Is this method safe to use?
Thank you very much for your guidance.
Regards,
Kerem