Select to view content in your preferred language

error: property 'calloutDelegate' not found on object of type 'AGSGraphicsLayer'

3138
3
Jump to solution
11-22-2013 10:30 AM
TeresaLewandowski
Deactivated User
Hi,
I am very new to the ios SDK and I am trying to create my first app. I would like to have call outs displayed for my feature layer points (from a feature service). I have been following the developers guide online and consulting the runtime samples provided however I keep running into several errors in the guide and the samples.

For the following sample code:
AGSCalloutTemplate* template = [[AGSCalloutTempate alloc] init] ;
template.titleTemplate = @"${CITY_NAME}"; //show the value for attribute key 'CITY_NAME'
template.detailTemplate = @"${POPULATION}"; //show the value for attribute key 'POPULATION'

AGSGraphicsLayer* layer = ... ;
layer.calloutDelegate = template;

I get the error "property 'calloutDelegate' not found on object of type 'AGSGraphicsLayer'".

and for the following sample code:
- (BOOL) callout:(AGSCallout *)callout willShowForFeature:(id<AGSFeature>)beerLayer layer:(AGSLayer<AGSHitTestable> *)beerLayer mapPoint:(AGSPoint *)mapPoint{
}

I get the errors "Cannot find protocol declaration for 'AGSFeature' and 'AGSHitTestable'".

How do I rectify these errors?

Cheers
0 Kudos
1 Solution

Accepted Solutions
TeresaLewandowski
Deactivated User
Yes I have version 10.2 downloaded for the SDK. However after re-reading the documentation I realized that I was working on xcode version 4.6.3. I upgraded my operating system so I could download version 5.0 of xcode. I haven't had a chance to try it out but hopefully that was the issue.
Cheers!

View solution in original post

0 Kudos
3 Replies
NimeshJarecha
Esri Regular Contributor
Are you using the latest version (10.2) of the SDK? If not, you should for above codes to work.

Regards,
Nimesh
0 Kudos
TeresaLewandowski
Deactivated User
Yes I have version 10.2 downloaded for the SDK. However after re-reading the documentation I realized that I was working on xcode version 4.6.3. I upgraded my operating system so I could download version 5.0 of xcode. I haven't had a chance to try it out but hopefully that was the issue.
Cheers!
0 Kudos
Vibin_DhasDevadhason
Emerging Contributor
I have installed ArcGIS 10.1 at initial statge. Also i have installed 10.2 how to configure 10.1 to 10.2 while importing ArcGIS Bundle.  Guide me to move forward..
0 Kudos