AGSCallout textColor property not set properly

1215
2
04-26-2010 01:42 PM
ChanceYohman
New Contributor
Lines 61-64 of AGSCalloutViewController.m:

//It doesn't look like the text color is being set correctly. cey 04.26.10
NSLog(@"Text Color: %@",[callout textColor]);
[callout setTextColor:[UIColor greenColor]];
NSLog(@"Text Color: %@",[callout textColor]);

yields:

2010-04-26 17:36:48.667 AGSCallout[2517:207] Text Color: (null)
2010-04-26 17:36:48.668 AGSCallout[2517:207] Text Color: (null)

What's wrong? Thanks in advance.
0 Kudos
2 Replies
DiveshGoyal
Esri Regular Contributor
You're missing a call to init() after allocating the callout.

AGSCallout *callout = [[AGSCallout alloc] init];


Also, instead of creating a new callout, you can retrieve the map's callout through AGSMapView::callout

_
Divesh
0 Kudos
ChanceYohman
New Contributor
That was it. Thanks.
0 Kudos