heluxsh / ISMessages

Fully customizable - update soon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ISMessages

This is simple extension for presenting system-wide notifications from top of device screen.

Requirements

  • Requires iOS 8 or later
  • Requires Automatic Reference Counting (ARC)

##Features

  • Simple use actions
  • Call from anywhere in app

Installation

CocoaPods

To install ISMessages using CocoaPods, please integrate it in your existing Podfile, or create a new Podfile:

target 'MyApp' do
  pod 'ISMessages'
end

Then run pod install.

Manual

Add ISMessages folder to your project

##Usage

#import <ISMessages/ISMessages.h>

###Presenting notification

All messages can simply presented via static method call:

[ISMessages showCardAlertWithTitle:@"This is your title!" 
            message:@"This is your message!" 
            iconImage:nil 
            duration:3.f 
            hideOnSwipe:YES 
            hideOnTap:YES 
            alertType:ISAlertTypeSuccess];

Messages can be displayed from any location in app, even not associated with UI.

###Hiding Messages

Notifications will hidden automatically after your duration or using static method

[ISMessages hideAlertAnimated:YES];

Also you can just tap/swipe {on} message to hide it.

##Author Ilya Inyushin

trsaltn@yandex.ru

License

Usage is provided under the MIT License. See LICENSE for full details.

About

Fully customizable - update soon.

License:MIT License


Languages

Language:Objective-C 96.4%Language:Ruby 3.6%