Skip to content

HDNotificationView works like system notifications. It appears within app.

License

Notifications You must be signed in to change notification settings

RajChanchal/HDNotificationView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

HDNotificationView appears notification view like system.

alt tag alt tag

Requirement

  • iOS 7.0+

Installation

Add two files HDNotificationView.h and HDNotificationView.m to your project.

Go ahead and import HDNotificationView to your file.

#import "HDNotificationView.h"

Usage

Show notification view with image (icon), title and message

+ (void)showNotificationViewWithImage:(UIImage *)image 
                                title:(NSString *)title 
                              message:(NSString *)message;     /// isAutoHide = YES

+ (void)showNotificationViewWithImage:(UIImage *)image 
                                title:(NSString *)title 
                              message:(NSString *)message
                           isAutoHide:(BOOL)isAutoHide;       /// onTouch = nil
                           
+ (void)showNotificationViewWithImage:(UIImage *)image
                                title:(NSString *)title 
                              message:(NSString *)message 
                           isAutoHide:(BOOL)isAutoHide 
                              onTouch:(void (^)())onTouch;

Hide notification view

+ (void)hideNotificationView;

+ (void)hideNotificationViewOnComplete:(void (^)())onComplete;

License

HDNotificationView is available under the MIT License. See the LICENSE for details.

About

HDNotificationView works like system notifications. It appears within app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%