Latest 1.0.1
Homepage https://github.com/WeiKunChao/SaKaBarNotification
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

a notification of statusBar or navigationBar

StatusBar Forexample:

SaKaStatusBarNotification *notification = [SaKaStatusBarNotification new];
notification.notificationStyle = SaKaNotificationStyleNavigationBarNotification;
notification.notificationAnimationInStyle = SaKaNotificationAnimationStyleBottom;
notification.notificationAnimationOutStyle = SaKaNotificationAnimationStyleBottom;
notification.multiline = YES;
notification.notificationTappedBlock = ^(void) {
};
[notification displayNotificationWithMessage:@"Are you crazy ?" forDuration:5.0f];

NavigationBar Forexample:

SaKaNavigationBarNotification *notification = [SaKaNavigationBarNotification defaultNavigationBarNotification];
notification.delegate = self;
[notification showWithMessage:@"Are you crazy , too ?" Duration:5.0f InView:self.tableView];

Also can get the delegate Method :

  • (void)navigationBarNotificationWillShow:(SaKaNavigationBarNotification )notification StartDate:(NSDate )start{
    NSLog(@"notification will show");
    NSLog(@"%@",start);
    }

  • (void)navigationBarNotificationIsTapped:(SaKaNavigationBarNotification *)notification {
    NSLog(@"notification is tapped");

}

  • (void)navigationBarNotificationIsDismissed:(SaKaNavigationBarNotification *)notification {
    NSLog(@"notification is Dismissed");
    }

Latest podspec

{
    "name": "SaKaBarNotification",
    "version": "1.0.1",
    "summary": "A Notification Label for NavigationBar Or StatusBar",
    "homepage": "https://github.com/WeiKunChao/SaKaBarNotification",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "WeiKunChao": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/WeiKunChao/SaKaBarNotification.git",
        "tag": "1.0.1"
    },
    "source_files": "BarNotification/**/*.{h,m}",
    "public_header_files": "BarNotification/**/*.h",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This