Merge pull request #4877 from igrechuhin/toast

[toast] [ios] Fixed MWMToast.
This commit is contained in:
Vlad Mihaylenko 2016-12-06 10:14:26 +03:00 committed by GitHub
commit 3b5ba553f5
2 changed files with 4 additions and 2 deletions

View file

@ -60,7 +60,10 @@ NSUInteger const kWordsPerSecond = 3;
UIView * sv = self.rootView;
[sv removeFromSuperview];
UIView * ov = topViewController().view;
UIViewController * tvc = topViewController();
UIView * ov = tvc.view;
if (!tvc.navigationController.navigationBarHidden)
ov = tvc.navigationController.navigationBar.superview;
[ov addSubview:sv];
NSLayoutConstraint * topOffset = [NSLayoutConstraint constraintWithItem:sv

View file

@ -94,7 +94,6 @@ NSArray<UIImage *> * imagesWithName(NSString * name)
- (void)mwm_refreshUI
{
[self.view mwm_refreshUI];
[self refreshAppearance];
}
- (void)setHidden:(BOOL)hidden