Select to view content in your preferred language

AGSMapView not working in Tab View Controller

794
2
09-10-2013 08:59 AM
CarolHamsly
Emerging Contributor
I've been using MKMapView until I saw your MapViewDemo (very cool!)  🙂

The demo project builds and runs fine on my device.  However, in my tab view controller app, when I hit the Map tab in my app (which worked fine with MKMapView), I just get a blank white screen (except for the tabs at the bottom). 

I'm using the same code as MapViewDemo with the following exceptions:
1) not including UIView in main app delegate (since doing that results in seeing the view placed over my Tab View Controller)
2) instead, View is placed inside my Tab View Controller using Storyboard

Any ideas?  The referencing mapView outlet is shown in XCode.  I also reverted my code back to using MKMapView and used the same steps shown here (got the same results...blank white screen):
https://developers.geoloqi.com/ios/maps
0 Kudos
2 Replies
CarolHamsly
Emerging Contributor
Resolved issue in this thread:
http://forums.arcgis.com/threads/92437-UIWindow-required-for-AGSMapView

This link had me struggling for many hours (please avoid):
https://developers.geoloqi.com/ios/maps
0 Kudos
Nicholas-Furness
Esri Regular Contributor
This link had me struggling for many hours (please avoid):
https://developers.geoloqi.com/ios/maps


Hi Carol.

I'm intrigued to learn what you struggled with in that blog post. It seems to reflect exactly how we describe setting up projects in the main tutorial you reference elsewhere (and how I set up all my samples).

I've not had any difficulty including AGSMapView in a view hierarchy, including as part of a Tab View Controller, so I'd be happy to look into it further with you since we're always keen to know if we can improve documentation.

Please let me know.

Cheers!

Nick.
0 Kudos