Ever wanted to show some notification or information label briefly overlaid on the status bar (like Mailbox app) or navigation bar area?
CRToast is a library that lets you do that. There's an animatics on the page that gives a good idea of what it does.
Sample code included:
NSDictionary *options = @{
kCRToastTextKey : @"Hello World!",
kCRToastTextAlignmentKey : @(NSTextAlignmentCenter),
kCRToastBackgroundColorKey : [UIColor redColor],
kCRToastAnimationInTypeKey : @(CRToastAnimationTypeGravity),
kCRToastAnimationOutTypeKey : @(CRToastAnimationTypeGravity),
kCRToastAnimationInDirectionKey : @(CRToastAnimationDirectionLeft),
kCRToastAnimationOutDirectionKey : @(CRToastAnimationDirectionRight)
};
[CRToastManager showNotificationWithOptions:options
completionBlock:^{
NSLog(@"Completed");
}];
It’s short and direct.
Your feedback is valuable: Do you want more nuggets like this? Yes or No
.