From 53000252349370cb62c49a7979a8ce9042d9a0ab Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 14 Oct 2012 04:48:10 +0300 Subject: [PATCH] [ios] Show edit keyboard if bookmark has default pin name --- iphone/Maps/Bookmarks/PlacePageVC.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iphone/Maps/Bookmarks/PlacePageVC.mm b/iphone/Maps/Bookmarks/PlacePageVC.mm index 27280a0f16..0c74635e75 100644 --- a/iphone/Maps/Bookmarks/PlacePageVC.mm +++ b/iphone/Maps/Bookmarks/PlacePageVC.mm @@ -28,6 +28,11 @@ [self.navigationController setNavigationBarHidden:NO animated:YES]; // Update the table - we can display it after changing set or color [self.tableView reloadData]; + + // Automatically show keyboard if bookmark has default name + if ([m_balloon.title isEqualToString:NSLocalizedString(@"dropped_pin", nil)]) + [[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]].accessoryView becomeFirstResponder]; + [super viewWillAppear:animated]; }