<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Application crash on drowing Picture Marker Symbol in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411396#M3535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Faisal,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The real problem is that you are creating a local variable of AGSCalloutTemplate (AGSCalloutTemplate *calloutTemp = [[AGSCalloutTemplate alloc]init]). Also, you are explicitly releasing it instead of retaining. After adding the graphic to graphic layer when you tap on it, the callout which added to the graphic is no longer available and hence it crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must create an instance variable of AGSCalloutTemplate with retain property to get it to work. Please have a look at code of available &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/group.html?owner=iOSDevelopmentTeam&amp;amp;title=ArcGIS%20for%20iOS%20Developer%20Samples"&gt;samples&lt;/A&gt;&lt;SPAN&gt; for the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 15:32:58 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2011-07-07T15:32:58Z</dc:date>
    <item>
      <title>Application crash on drowing Picture Marker Symbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411393#M3532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm using "did click at point" to draw my Picture Symbol on the clicked point , &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my problem is the following : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- if i clicked anywhere in the map , i add the symbol to graphic layer and draw it without any problem , but if i clicked at the same location that i have already clicked before the application will crash , &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- some times before the application crash , a small dialog with a blue arrow shows up on the picture symbol , how to disable that dialog and why the application is crashing ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;below is my code and attached image for the blue arrow : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; if (Clicked == NO)&lt;BR /&gt; {&lt;BR /&gt; self.view.userInteractionEnabled = FALSE;&lt;BR /&gt;&lt;BR /&gt; HUD = [[MBProgressHUD alloc] initWithView:self.view];&lt;BR /&gt; [self.view addSubview:HUD];&lt;BR /&gt;&lt;BR /&gt; HUD.delegate = self;&lt;BR /&gt; HUD.labelText = @"Ù?Ø±Ø¬Ù? Ø§Ù?Ø§Ù?ØªØ¸Ø§Ø±";&lt;BR /&gt; &lt;BR /&gt; [HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; [myGraphicsLayer removeAllGraphics];&lt;BR /&gt;&lt;BR /&gt; AppDataObjectHelper* theDataObject = [self theAppDataObject];&lt;BR /&gt;&lt;BR /&gt; point = mappoint;&lt;BR /&gt;&lt;BR /&gt; theDataObject.XPoint = [NSString stringWithFormat:@"%.11lf",mappoint.x];&lt;BR /&gt; theDataObject.YPoint = [NSString stringWithFormat:@"%.11lf",mappoint.y];&lt;BR /&gt;&lt;BR /&gt; url = [NSURL URLWithString:theDataObject.StreetLayerIndex];&lt;BR /&gt;&lt;BR /&gt; IsStreetLayer = YES;&lt;BR /&gt;&lt;BR /&gt; [self GetQuery:url mapPoint:point];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; NSLog(@"touchesBegan");&lt;BR /&gt;&lt;BR /&gt; //create the callout template, used when the user displays the callout&lt;BR /&gt; AGSCalloutTemplate *calloutTemp = [[AGSCalloutTemplate alloc]init];&lt;BR /&gt;&lt;BR /&gt; marker = [AGSPictureMarkerSymbol pictureMarkerSymbolWithImageNamed:@"pushpin.png"];&lt;BR /&gt;&lt;BR /&gt; marker.xoffset = 5;&lt;BR /&gt; marker.yoffset = 5;&lt;BR /&gt; marker.hotspot = CGPointMake(-9, -11);&lt;BR /&gt;&lt;BR /&gt; //create the graphic&lt;BR /&gt; AGSGraphic *graphic = [[AGSGraphic alloc] initWithGeometry:mappoint symbol:marker&lt;BR /&gt; attributes:nil infoTemplateDelegate:calloutTemp];&lt;BR /&gt; &lt;BR /&gt; [calloutTemp release];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; [myGraphicsLayer addGraphic:graphic];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; self.mapView.callout.width = 250;&lt;BR /&gt;&lt;BR /&gt; [graphic release];&lt;BR /&gt;&lt;BR /&gt; [myGraphicsLayer dataChanged];&lt;BR /&gt;&lt;BR /&gt; Clicked = YES;&lt;BR /&gt; }&lt;BR /&gt;&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 08:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411393#M3532</guid>
      <dc:creator>FaisalSabri</dc:creator>
      <dc:date>2011-06-27T08:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Application crash on drowing Picture Marker Symbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411394#M3533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You wrote&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;... a small dialog with a blue arrow shows up on the picture symbol , how to disable that dialog ...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//create the callout template, used when the user displays the callout
AGSCalloutTemplate *calloutTemp = [[AGSCalloutTemplate alloc]init];
.....
//create the graphic
AGSGraphic *graphic = [[AGSGraphic alloc] initWithGeometry:mappoint symbol:marker
attributes:nil infoTemplateDelegate:calloutTemp];&lt;/PRE&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This small dialog is callout (see more information on &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/ios/1.8/concepts/index.html#/Displaying_a_Callout/00pw0000004t000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/ios/1.8/concepts/index.html#/Displaying_a_Callout/00pw0000004t000000/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you set nil instead of calloutTemp then (I think) graphic will be without callout functionality (user cannot see any callout after touch graphic on map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//create the graphic without callout functionality
AGSGraphic *graphic = [[AGSGraphic alloc] initWithGeometry:mappoint symbol:marker
attributes:nil infoTemplateDelegate:calloutTemp];&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411394#M3533</guid>
      <dc:creator>MuratDzhusupov</dc:creator>
      <dc:date>2021-12-11T18:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Application crash on drowing Picture Marker Symbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411395#M3534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank You !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now is working perfect :))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2011 07:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411395#M3534</guid>
      <dc:creator>FaisalSabri</dc:creator>
      <dc:date>2011-07-03T07:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Application crash on drowing Picture Marker Symbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411396#M3535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Faisal,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The real problem is that you are creating a local variable of AGSCalloutTemplate (AGSCalloutTemplate *calloutTemp = [[AGSCalloutTemplate alloc]init]). Also, you are explicitly releasing it instead of retaining. After adding the graphic to graphic layer when you tap on it, the callout which added to the graphic is no longer available and hence it crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must create an instance variable of AGSCalloutTemplate with retain property to get it to work. Please have a look at code of available &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/group.html?owner=iOSDevelopmentTeam&amp;amp;title=ArcGIS%20for%20iOS%20Developer%20Samples"&gt;samples&lt;/A&gt;&lt;SPAN&gt; for the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 15:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411396#M3535</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-07-07T15:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Application crash on drowing Picture Marker Symbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411397#M3536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Nimesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes i noticed That , i need to read more on ESRI and iOS , without just downloading the sample and try to understand them ... the solution is in front of my eye but i'm not reading it !! :((((&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank u Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 11:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crash-on-drowing-picture-marker-symbol/m-p/411397#M3536</guid>
      <dc:creator>FaisalSabri</dc:creator>
      <dc:date>2011-09-13T11:21:53Z</dc:date>
    </item>
  </channel>
</rss>

