git: https://github.com/myell0w/MTStatusBarOverlay
.调用
- (IBAction)show
{
MTStatusBarOverlay *overlay = [MTStatusBarOverlay sharedInstance];
//overlay.hidesActivity = NO;
//overlay.historyEnabled = YES;
overlay.animation = MTStatusBarOverlayAnimationFallDown;
overlay.detailViewMode = MTDetailViewModeHistory;
[overlay postMessage:@"one" animated:YES];
[overlay postMessage:@"two" animated:YES];
[overlay postMessage:@"three" animated:YES];
//[overlay postMessage:@"this is one" duration:1 animated:YES];
//[overlay postMessage:@"this is two" duration:1 animated:YES];
//[overlay postMessage:@"this is three" duration:1 animated:YES];
}.显示
本文展示了如何使用MTStatusBarOverlay库来实现状态栏覆盖功能,并提供了几个实例调用方法,包括设置动画、历史视图模式等。

被折叠的 条评论
为什么被折叠?



