Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorv.mikhaylenko <v.mikhaylenko@corp.mail.ru>2015-06-23 17:21:11 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:52:49 +0300
commit018fdf190f656fbdc474f3feec6108711dc03768 (patch)
tree17111900ee6508db7d279dddf8fd83d6a1142288 /iphone/Maps/Classes/MWMPlacePageBookmarkCell.mm
parent078ea88c16fad66817c9b2dde6ff207be6690794 (diff)
[ios] Fixed bug with place page title after editing.
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePageBookmarkCell.mm')
-rw-r--r--iphone/Maps/Classes/MWMPlacePageBookmarkCell.mm8
1 files changed, 3 insertions, 5 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePageBookmarkCell.mm b/iphone/Maps/Classes/MWMPlacePageBookmarkCell.mm
index aaceb1e828..aa397377eb 100644
--- a/iphone/Maps/Classes/MWMPlacePageBookmarkCell.mm
+++ b/iphone/Maps/Classes/MWMPlacePageBookmarkCell.mm
@@ -41,7 +41,7 @@ extern NSString * const kBookmarkCellWebViewDidFinishLoadContetnNotification = @
name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(keyboardWillBeHidden:)
+ selector:@selector(keyboardWillBeHidden)
name:UIKeyboardWillHideNotification object:nil];
}
@@ -53,12 +53,10 @@ extern NSString * const kBookmarkCellWebViewDidFinishLoadContetnNotification = @
[self.placePage willStartEditingBookmarkTitle:kbSize.height];
}
-- (void)keyboardWillBeHidden:(NSNotification *)aNotification
+- (void)keyboardWillBeHidden
{
- NSDictionary const * info = [aNotification userInfo];
- CGSize const kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
if ([self.title isEditing])
- [self.placePage willFinishEditingBookmarkTitle:kbSize.height];
+ [self.placePage willFinishEditingBookmarkTitle:self.title.text.length > 0 ? self.title.text : self.placePage.manager.entity.title];
}
- (void)textFieldDidEndEditing:(UITextField *)textField