how do we hide a callout?

665
3
05-07-2010 03:16 AM
GeorgeVernardos
New Contributor III
When we clear all graphics while a callout is shown
[esriGraphicsLayer removeAllGraphics];

the graphics will disappear but the callout still hangs on the map.

how do we hide the callout ?
0 Kudos
3 Replies
ChanceYohman
New Contributor
mapView.callout.hidden = YES;


Refer to the ToggleGraphicsLayer function in GraphicsDemoViewController.m of the GraphicsDemo sample in the SDK. It's around line 106. I've been editing my own GraphicsDemo sample, so your line # will vary.

Hope that helps.
0 Kudos
GeorgeVernardos
New Contributor III
Thank you.
It worked
0 Kudos
ChanceYohman
New Contributor
Thank you.
It worked


You're welcome.
0 Kudos