<?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: AGSLayerDelegate is not being called in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslayerdelegate-is-not-being-called/m-p/82980#M820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to hold the reference to your MyLayerDelegate variable so it wouldn't be released by the system. In your controller class's .h file, add the following line, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@property (nonatomic, strong) MyLayerDelegate *myLayerDelegate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then create an object for this class in your controller's .m file, and assign to the variable you declared in the .h file such as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myLayerDelegate = [[MyLayerDelegate alloc] init];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yourDynamicLayer.delegate = myLayerDelegate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's all. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2013 15:04:02 GMT</pubDate>
    <dc:creator>FrankXia</dc:creator>
    <dc:date>2013-03-12T15:04:02Z</dc:date>
    <item>
      <title>AGSLayerDelegate is not being called</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslayerdelegate-is-not-being-called/m-p/82979#M819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Let's say I have my own delegate class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@interface MyLayerDelegate : NSObject &amp;lt;AGSLayerDelegate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;along with its implementation file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my ViewController, I set a delegate like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSDynamicMapServiceLayer *aLayer = ...;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;aLayer.delegate = [[MyLayerDelegate alloc] init];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why isn't this delegate instance not being called?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I make ViewController to adopt AGSLayerDelegate and do&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;aLayer.delegate = self;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, this works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I'm new to Objective-C, iOS land.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kyunam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 23:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslayerdelegate-is-not-being-called/m-p/82979#M819</guid>
      <dc:creator>KyunamKim</dc:creator>
      <dc:date>2013-03-11T23:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: AGSLayerDelegate is not being called</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslayerdelegate-is-not-being-called/m-p/82980#M820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to hold the reference to your MyLayerDelegate variable so it wouldn't be released by the system. In your controller class's .h file, add the following line, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@property (nonatomic, strong) MyLayerDelegate *myLayerDelegate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then create an object for this class in your controller's .m file, and assign to the variable you declared in the .h file such as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myLayerDelegate = [[MyLayerDelegate alloc] init];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yourDynamicLayer.delegate = myLayerDelegate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's all. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 15:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslayerdelegate-is-not-being-called/m-p/82980#M820</guid>
      <dc:creator>FrankXia</dc:creator>
      <dc:date>2013-03-12T15:04:02Z</dc:date>
    </item>
  </channel>
</rss>

