Weird mapView problems from new method

Discussion created by ebrightc on Jul 11, 2011
Latest reply on Jul 20, 2011 by njarecha-esristaff
I am trying to have my map view zoomToEnvelope from a row selection on a table view, but I am getting some weird behaviour.
I am making the map view controller the delegate of the table view controller, so when i select a row, it fires a method within the map view controller. This connection works as I can get a NSLOG message from the method in my map View controller.
But, when i try to do anything else with the map view, i get strange stuff. For example, if i try to display properties of the map view, i get errors. Even though I can get valid property values back from other custom methods in my map view controller.

here is my method in my map view controller:

-(void)wellNameSelected:(AGSEnvelope *)envelope {

   [self.mapView zoomToEnvelope:envelope animated:YES];


if I put
NSLog(@"mapView units: %d", self.mapView.units);

  I get back 0, when it should be 6.
But, if i put that same exact line in any other custom method in the same implementation file,
  I get back 6.