Fix for top alert pointer.
This commit is contained in:
parent
25c754b234
commit
59a6641ca6
@ -31,6 +31,9 @@
|
||||
// Returns the top alert view
|
||||
+ (nullable instancetype)sharedGlobal;
|
||||
|
||||
// Returns a TopAlertView with the mvm styling. Also sets the property in the session.
|
||||
+ (nullable instancetype)setupTopAlertView;
|
||||
|
||||
// Pins the status bar view at the top of the passed in view controller.
|
||||
- (void)pinATopViewController:(nonnull UIViewController *)viewController;
|
||||
|
||||
|
||||
@ -54,6 +54,13 @@ NSString * const MFAccTopAlertClosed = @"Top alert notification is closed.";
|
||||
return [MVMCoreUISession sharedGlobal].topAlertView;
|
||||
}
|
||||
|
||||
+ (nullable instancetype)setupTopAlertView {
|
||||
MVMCoreUITopAlertView *topAlertView = [[self alloc] init];
|
||||
topAlertView.translatesAutoresizingMaskIntoConstraints = NO;
|
||||
[MVMCoreUISession sharedGlobal].topAlertView = topAlertView;
|
||||
return topAlertView;
|
||||
}
|
||||
|
||||
- (void)setupView {
|
||||
[super setupView];
|
||||
if (!self.statusBarView) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user