code review
This commit is contained in:
parent
b0e6d30500
commit
90310adfea
@ -326,7 +326,7 @@
|
||||
|
||||
|
||||
- (BOOL)isOverridingRightButton {
|
||||
if ([self.loadObject.pageJSON dict:@"supportLink"]) {
|
||||
if ([self.loadObject.pageJSON dict:@"rightPanelButtonMap"]) {
|
||||
[[MVMCoreActionHandler sharedActionHandler] handleActionWithDictionary:[self.loadObject.pageJSON dict:@"supportLink"]
|
||||
additionalData:nil
|
||||
delegate:self];
|
||||
|
||||
@ -24,7 +24,10 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
// Called when the back button is pressed. Overwrite for special functionality.
|
||||
- (void)backButtonPressed;
|
||||
|
||||
// View Controller can override this method and do custom action instead of opening the right panel
|
||||
- (BOOL)isOverridingRightButton;
|
||||
|
||||
// View Controller can override this method and do custom action instead of opening the left panel
|
||||
- (BOOL)isOverridingLeftButton;
|
||||
|
||||
@end
|
||||
|
||||
@ -152,17 +152,14 @@ CGFloat const PanelAnimationDuration = 0.2;
|
||||
}
|
||||
|
||||
if (self.mainViewLeading.constant < .1) {
|
||||
|
||||
// Hide the keyboard
|
||||
[self.navigationController.topViewController.view endEditing:YES];
|
||||
|
||||
[viewController.view endEditing:YES];
|
||||
// Show
|
||||
[self showLeftPanelAnimated:YES];
|
||||
} else {
|
||||
// Hide
|
||||
[self hideLeftPanelIfNeededAnimated:YES];
|
||||
}
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
@ -191,7 +188,6 @@ CGFloat const PanelAnimationDuration = 0.2;
|
||||
if (self.mainViewTrailing.constant < .1) {
|
||||
// Hide the keyboard
|
||||
[viewController.view endEditing:YES];
|
||||
|
||||
// Show
|
||||
[self showRightPanelAnimated:YES];
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user