In my project, I use a button, that when pressed adds a UITextView (textWindow) to a map view (mapView). The issue is when you add the UITextView after you have navigated away from the user's current location on the map. When you add the UITextView then, the map automatically recenters to the user's location, where as I'd like it to remain where it is and not recenter. Is there something I can add to my code that will prevent it from automatically recentering?
My Code...
- (IBAction)textButton:(id)sender {
UITextView *textWindow = [[UITextView alloc] initWithFrame:CGRectMake(10, 30, 300, 40)];
textWindow.returnKeyType = UIReturnKeyDone;
textWindow.delegate = self;
textWindow.textAlignment = NSTextAlignmentCenter;
[_mapView addSubview:textWindow];
[textWindow becomeFirstResponder];
NSLog(@"Text Button Pressed");
}