RSZInAppNotifications 1.0.1

RSZInAppNotifications 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by Radosław Szeja.



  • By
  • Radosław Szeja

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!