Fix for top alert pointer.

This commit is contained in:
Pfeil, Scott Robert 2019-03-04 18:30:04 -05:00
parent 25c754b234
commit 59a6641ca6
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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) {