deleted-user--c7HXKQt3eCH

Possible error in documentation

Discussion created by deleted-user--c7HXKQt3eCH on Dec 29, 2009
Latest reply on Dec 30, 2009 by dcardella-esristaff
This tutorial incorrectly states that to get the map to rotate all I need to do is include the following code in the view controller implementation file:

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

The above code snippet will keep the map in the portrait orientation and won't rotate the map when the device is moved to a landscape orientation. Instead of returning (interfaceOrientation == UIInterfaceOrientationPortrait) the method should return YES.

Outcomes