forked from organicmaps/organicmaps
Merge pull request #4877 from igrechuhin/toast
[toast] [ios] Fixed MWMToast.
This commit is contained in:
commit
3b5ba553f5
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -94,7 +94,6 @@ NSArray<UIImage *> * imagesWithName(NSString * name)
|
|||
- (void)mwm_refreshUI
|
||||
{
|
||||
[self.view mwm_refreshUI];
|
||||
[self refreshAppearance];
|
||||
}
|
||||
|
||||
- (void)setHidden:(BOOL)hidden
|
||||
|
|
Loading…
Add table
Reference in a new issue