Releases: lobianco/ALAlertBanner
Releases · lobianco/ALAlertBanner
0.3.1
0.3.0
Added
- Cleaner, future-proof code. New API requires you to create a banner, (optionally) customize it, and explicitly show it like so:
ALAlertBanner *banner = [ALAlertBanner alertBannerForView:self.view
style:ALAlertBannerStyleSuccess
position:ALAlertBannerPositionTop
title:@"Success!"
subtitle:@"Here's a banner. That was easy."];
/*
optionally customize banner properties here...
*/
[banner show];
- Some methods were removed in the refactoring. API changes should slow down as ALAlertBanner matures.
0.2.2
0.2.1
0.2.0
Added
- Tap handler
- New methods:
-(void)showAlertBannerInView:(UIView*)view
style:(ALAlertBannerStyle)style
position:(ALAlertBannerPosition)position
title:(NSString*)title
subtitle:(NSString*)subtitle
hideAfter:(NSTimeInterval)secondsToShow;
-(void)showAlertBannerInView:(UIView*)view
style:(ALAlertBannerStyle)style
position:(ALAlertBannerPosition)position
title:(NSString*)title
subtitle:(NSString*)subtitle
tappedHandler:(void(^)(ALAlertBannerView *alertBanner))tappedBlock;
-(void)showAlertBannerInView:(UIView*)view
style:(ALAlertBannerStyle)style
position:(ALAlertBannerPosition)position
title:(NSString*)title
subtitle:(NSString*)subtitle
hideAfter:(NSTimeInterval)secondsToShow
tappedHandler:(void(^)(ALAlertBannerView *alertBanner))tappedBlock;
-(void)hideAlertBanner:(ALAlertBannerView *)alertBanner;
Fixed
- Issue #2