A NoticeBar similar with QQ Navigationbar notice view,written by Objective-C.
一个风格类似于 QQ 的顶部导航栏信息提醒 view,使用 Objective-C 语言。
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.Thanks so much for @qiuncheng's thinking.
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
Objective-C & iOS 8+
- add
pod 'MERNoticeBar'to your Podfile. - Run
pod installORpod update. import MERNoticebar
- Download the full file.
- Drag the MERNoticeBar folder to your project.
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
}];
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];
- Custom Background image
- Custom content view
If you have a new idea about this project, Please let me know. OR pull request.
- Email: [email protected]
MERNoticeBar is provided under the MIT license. See LICENSE file for details.

