From 32578e3f7d506ca8c825f1d6bb05979f4a5806aa Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Tue, 19 Apr 2016 12:03:41 +0300 Subject: [PATCH 1/6] [ios] Default drop down. --- iphone/Maps/Classes/Components/MWMDropDown.h | 2 +- iphone/Maps/Classes/Components/MWMDropDown.mm | 5 +++++ iphone/Maps/Classes/Components/MWMDropDown.xib | 12 ++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/iphone/Maps/Classes/Components/MWMDropDown.h b/iphone/Maps/Classes/Components/MWMDropDown.h index 55d747c71e..0f88808b8a 100644 --- a/iphone/Maps/Classes/Components/MWMDropDown.h +++ b/iphone/Maps/Classes/Components/MWMDropDown.h @@ -1,8 +1,8 @@ +// Default drop down which dismiss automaticaly after 3 seconds. @interface MWMDropDown : NSObject - (instancetype)initWithSuperview:(UIView *)view; - (void)showWithMessage:(NSString *)message; -- (void)dismiss; - (instancetype)init __attribute__((unavailable("call -initWithSuperview: instead!"))); + (instancetype)new __attribute__((unavailable("call -initWithSuperview: instead!"))); diff --git a/iphone/Maps/Classes/Components/MWMDropDown.mm b/iphone/Maps/Classes/Components/MWMDropDown.mm index 34afd9ce7d..ef0f40c0de 100644 --- a/iphone/Maps/Classes/Components/MWMDropDown.mm +++ b/iphone/Maps/Classes/Components/MWMDropDown.mm @@ -89,6 +89,11 @@ CGFloat const kTopOffset = 25.; self.dropDown.alpha = 1.; self.dropDown.origin = {}; }]; + + [self performAfterDelay:3 block:^ + { + [self dismiss]; + }]; } @end diff --git a/iphone/Maps/Classes/Components/MWMDropDown.xib b/iphone/Maps/Classes/Components/MWMDropDown.xib index 0b2e4bdf6a..8fbd742fcb 100644 --- a/iphone/Maps/Classes/Components/MWMDropDown.xib +++ b/iphone/Maps/Classes/Components/MWMDropDown.xib @@ -1,8 +1,8 @@ - + - + @@ -19,20 +19,16 @@ - + - - + - - - From f7e8e9ccc6b36591519da4dda0e1cda21a9cbb12 Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Tue, 19 Apr 2016 12:48:44 +0300 Subject: [PATCH 2/6] [ios] Editor xibs. --- .../CustomAlert/MWMPlaceDoesntExistAlert.xib | 193 ++++++++++++++++++ .../Classes/Editor/MWMEditorCategoryCell.xib | 13 +- .../Editor/MWMEditorNameTableViewCell.xib | 11 +- .../Classes/Editor/MWMEditorNotesFooter.xib | 72 +++++++ .../Editor/MWMEditorTextTableViewCell.xib | 2 +- .../Maps/Classes/Editor/MWMNoteButtonCell.xib | 43 ++++ iphone/Maps/Classes/Editor/MWMNoteCell.xib | 50 +++++ .../Maps/Classes/MWMPlacePageButtonCell.xib | 12 +- 8 files changed, 377 insertions(+), 19 deletions(-) create mode 100644 iphone/Maps/Classes/CustomAlert/MWMPlaceDoesntExistAlert.xib create mode 100644 iphone/Maps/Classes/Editor/MWMEditorNotesFooter.xib create mode 100644 iphone/Maps/Classes/Editor/MWMNoteButtonCell.xib create mode 100644 iphone/Maps/Classes/Editor/MWMNoteCell.xib diff --git a/iphone/Maps/Classes/CustomAlert/MWMPlaceDoesntExistAlert.xib b/iphone/Maps/Classes/CustomAlert/MWMPlaceDoesntExistAlert.xib new file mode 100644 index 0000000000..9a17648822 --- /dev/null +++ b/iphone/Maps/Classes/CustomAlert/MWMPlaceDoesntExistAlert.xib @@ -0,0 +1,193 @@ + + + + + + + + + HelveticaNeue-Medium + HelveticaNeue-Medium + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iphone/Maps/Classes/Editor/MWMEditorCategoryCell.xib b/iphone/Maps/Classes/Editor/MWMEditorCategoryCell.xib index 0408c19b8f..06769d18fc 100644 --- a/iphone/Maps/Classes/Editor/MWMEditorCategoryCell.xib +++ b/iphone/Maps/Classes/Editor/MWMEditorCategoryCell.xib @@ -1,9 +1,8 @@ - + - - + @@ -26,7 +25,7 @@ - + diff --git a/iphone/Maps/Classes/Editor/MWMEditorNotesFooter.xib b/iphone/Maps/Classes/Editor/MWMEditorNotesFooter.xib new file mode 100644 index 0000000000..cd9a7c03ab --- /dev/null +++ b/iphone/Maps/Classes/Editor/MWMEditorNotesFooter.xib @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.xib b/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.xib index ec51a1229d..e0c05c0868 100644 --- a/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.xib +++ b/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.xib @@ -29,7 +29,7 @@ - + diff --git a/iphone/Maps/Classes/Editor/MWMNoteButtonCell.xib b/iphone/Maps/Classes/Editor/MWMNoteButtonCell.xib new file mode 100644 index 0000000000..0131e10d92 --- /dev/null +++ b/iphone/Maps/Classes/Editor/MWMNoteButtonCell.xib @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iphone/Maps/Classes/Editor/MWMNoteCell.xib b/iphone/Maps/Classes/Editor/MWMNoteCell.xib new file mode 100644 index 0000000000..4ededfec17 --- /dev/null +++ b/iphone/Maps/Classes/Editor/MWMNoteCell.xib @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iphone/Maps/Classes/MWMPlacePageButtonCell.xib b/iphone/Maps/Classes/MWMPlacePageButtonCell.xib index eb5fdbf27d..53d692c6a9 100644 --- a/iphone/Maps/Classes/MWMPlacePageButtonCell.xib +++ b/iphone/Maps/Classes/MWMPlacePageButtonCell.xib @@ -1,8 +1,8 @@ - + - + @@ -14,17 +14,13 @@ -