Skip to content

Commit

Permalink
changed ALAlertBannerStyleAlert to ALAlertBannerStyleWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
lobianco committed Aug 30, 2013
1 parent 6ca750c commit d730787
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ALAlertBanner/ALAlertBannerView.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ typedef enum {
ALAlertBannerStyleSuccess = 0,
ALAlertBannerStyleFailure,
ALAlertBannerStyleNotify,
ALAlertBannerStyleAlert,
ALAlertBannerStyleWarning,
} ALAlertBannerStyle;

typedef enum {
Expand Down
6 changes: 3 additions & 3 deletions ALAlertBanner/ALAlertBannerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ -(void)setStyle:(ALAlertBannerStyle)style {
self.styleImageView.image = [UIImage imageNamed:@"bannerNotify.png"];
break;

case ALAlertBannerStyleAlert:
case ALAlertBannerStyleWarning:
self.styleImageView.image = [UIImage imageNamed:@"bannerAlert.png"];

//tone the shadows down a little for the yellow background
Expand Down Expand Up @@ -246,7 +246,7 @@ + (ALAlertBannerView *)alertBannerForView:(UIView *)view style:(ALAlertBannerSty
if (!isSuperviewKindOfWindow && position == ALAlertBannerPositionUnderNavBar)
[[NSException exceptionWithName:@"Bad ALAlertBannerStyle For View Type" reason:@"ALAlertBannerPositionUnderNavBar should only be used if you are presenting the alert banner on the AppDelegate window. Use ALAlertBannerPositionTop or ALAlertBannerPositionBottom for normal UIViews" userInfo:nil] raise];

alertBanner.titleLabel.text = title;
alertBanner.titleLabel.text = !title ? @" " : title;
alertBanner.subtitleLabel.text = subtitle;
alertBanner.style = style;
alertBanner.position = position;
Expand Down Expand Up @@ -618,7 +618,7 @@ - (void)drawRect:(CGRect)rect {
case ALAlertBannerStyleNotify:
fillColor = [UIColor colorWithRed:(48/255.0) green:(110/255.0) blue:(173/255.0) alpha:1.f];
break;
case ALAlertBannerStyleAlert:
case ALAlertBannerStyleWarning:
fillColor = [UIColor colorWithRed:(211/255.0) green:(209/255.0) blue:(100/255.0) alpha:1.f];
break;
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ ALAlertBannerStyleNotify
The banner will have a cute little info symbol and a nice blue gradient.

```objc
ALAlertBannerStyleAlert
ALAlertBannerStyleWarning
```

The banner will have a cute little caution triangle and a nice yellow gradient.
Expand Down

0 comments on commit d730787

Please sign in to comment.