Skip to content

InAppNotifications module is a simple mechanism to present notifications when application is active.

License

Notifications You must be signed in to change notification settings

rad3ks/RSZInAppNotifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InAppNotifications

InAppNotifications module is a simple mechanism to present notifications when application is active. You can read more about this project on my blog.

Example

Installation

Use CocoaPods:

pod 'RSZInAppNotifications'

or add RSZInAppNotifications folder to your project.

Usage

RSZPresenter requires UIWindow instance to work. Add the following code to -application:didFinishLaunchingWithOptions:

[RSZPresenter setPresentingWindow:self.window];

Now you can create notification (assuming you have it's view):

RSZNotification *notification = [RSZNotification notificationWithAssociatedView:view onTapBlock:block];

and then present it:

[RSZPresenter presentNotification:notification];

That's it!

About

InAppNotifications module is a simple mechanism to present notifications when application is active.

Resources

License

Stars

Watchers

Forks

Packages

No packages published