Skip to content

aChase55/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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%