Skip to content

Dead simple notification message banners (appearing from bottom of the view) for iOS

License

Notifications You must be signed in to change notification settings

carabina/HMAMessageViewManager

 
 

Repository files navigation

HMAMessageViewManager

Dead simple notification message banners (appearing from bottom) for iOS. Xcode 7 and iOS9 SDK. example mov

  • No dependencies
  • Rotation support (uses autolayout)
  • Error, Warning, Success and Default types
  • Customize fonts via UIAppearance
  • No legacy code ;)

Message banner hides automatically after seconds defined with kMessageViewDismissInSeconds constant or by user tap.

Sample Usage

#import "HMAMessageViewManager.h"
...
[[HMAMessageViewManager sharedManager] showMessageInController:self
                                                          title:@"Oops!"
                                                      subtitle:@"Did not expected this"
                                                          type:HMAMessageViewTypeWarning];

Customization

To customize font for message title and subtitle in you app delegate (or any other place setting default appearance):

#import "HMAMessageView.h"
...
[[HMAMessageView appearance] setTitleFont:[UIFont boldSystemFontOfSize:10]];
[[HMAMessageView appearance] setSubtitleFont:[UIFont boldSystemFontOfSize:6]];

About

Dead simple notification message banners (appearing from bottom of the view) for iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%