Select to view content in your preferred language

How to place AGSMapView into a xib file?

1011
5
04-25-2013 05:11 PM
SeanNakasone
Emerging Contributor
How do we add an AGSMapView object into a xib, in the interface builder?  I guess my question can be taken more generally, how do we add ArcGIS objects to the xib, or how do we add ArcGIS objects to the Object Library so we can drag them into the Interface Builder?
0 Kudos
5 Replies
NimeshJarecha
Esri Regular Contributor
You cannot add AGSMapView to object library. You just add UIView to your view controller and change it's class to be AGSMapView.

Regards,
Nimesh
0 Kudos
SeanNakasone
Emerging Contributor
Thanks a lot.
0 Kudos
EmilioSolano
Occasional Contributor
Hi Nimesh, I was trying to add a map to the UIView by following the instructions on the "Add a Map to your map" tutorial, that after completing all the steps in the "Get Started (XCode)" tutorial, but even though I have repeated the tutorials many times, I have yet to see the AGSMapView class when clicking the dropdown arrow to change from UIView to AGSMapView.
I don't know if the instructions are incomplete, or I'm really dense. Please advice.

Thanks,

Emilio
0 Kudos
DiveshGoyal
Esri Regular Contributor
Yes, you won't see the AGSMapView in the dropdown because it is not one of the built-in types.
You need to type it in.
0 Kudos
SeanNakasone
Emerging Contributor
I have seen AGSMapView in the list, but I'm not sure what puts it in there.
0 Kudos