Latest 0.0.1
Homepage https://github.com/Mervin1024/MERNoticeBar
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

A NoticeBar similar with QQ Navigationbar notice view,written by Objective-C.

ScreenShots

tips : Please set the "View controller-based status bar appearance" to "NO" in the "info.plist",otherwise the status bar style can not be changed.

Another ‘NoticeBar’ project by swift

At first I find the NoticeBar project by @qiuncheng , but it just support swift.So I wrote this Objective-C version according to NoticeBar.After that I added some of my own ideas in this project.

If you want a swift version , you can try the NoticeBar

Support

Objective-C & iOS 8+

Installation

CocoaPods

  1. add pod 'MERNoticeBar' to your Podfile.
  2. Run pod install OR pod update.
  3. import MERNoticebar

Manually

  1. Download the full file.
  2. Drag the MERNoticeBar folder to your project.

Example

Default type

How to use? For example: -> MERNoticeBarDefaultTypeSuccess:

// title : The message you want to show
// defaultType : Above four types with different style above.
[MERNoticeBar showAnimationWithTitle:"#message" defaultType: MERNoticeBarDefaultTypeSuccess completed:^(BOOL finished) {
                // completed
 }];

Custom

Also you can custom MERNoticeBarConfig


MERNoticeBarConfig *config = [[MERNoticeBarConfig alloc] initWithTitle:(NSString *)
                                                                     image:(UIImage *)
                                                                 textColor:(UIColor *)
                                                           backgroundColor:(UIColor *)
                                                                  barStyle:(MERNoticeBarStyle)
                                                             animationType:(MERNoticeBarAnimationType)];
[MERNoticeBar showAnimationWithConfig:config completed:nil];

ToDo

  • Custom Background image
  • Custom content view

Contact

If you have a new idea about this project, Please let me know. OR pull request.

License

MERNoticeBar is provided under the MIT license. See LICENSE file for details.

Latest podspec

{
    "name": "MERNoticeBar",
    "version": "0.0.1",
    "summary": "A simple NoticeBar that can automatically disappear with animation.",
    "description": "A NoticeBar similar with QQ Navigationbar notice view,written by Objective-C.",
    "homepage": "https://github.com/Mervin1024/MERNoticeBar",
    "license": "MIT",
    "authors": {
        "u9a6cu9065": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Mervin1024/MERNoticeBar.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "MERNoticeBar",
        "MERNoticeBar/NoticeBar/*.{h,m}"
    ],
    "resources": "MERNoticeBar/NoticeBar/*.bundle",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This