AnsweredAssumed Answered

AGSLayerDelegate is not being called

Question asked by kyunam_kim-esristaff Employee on Mar 11, 2013
Latest reply on Mar 12, 2013 by FXia-esristaff
Let's say I have my own delegate class

@interface MyLayerDelegate : NSObject <AGSLayerDelegate>
@end
along with its implementation file.

In my ViewController, I set a delegate like this.

AGSDynamicMapServiceLayer *aLayer = ...;
aLayer.delegate = [[MyLayerDelegate alloc] init];

Why isn't this delegate instance not being called?

When I make ViewController to adopt AGSLayerDelegate and do
aLayer.delegate = self;
Then, this works.

Yes, I'm new to Objective-C, iOS land.

Thanks,
Kyunam

Outcomes