1

This seems to be a recurring theme...I have only one error and it is an undeclared identifier at the line...addBadgeToView:AppButton in the app_delegate with AppButton being the culprit. Any thoughts? Thanks in advance!

app_header:

-(void) addBadgeToView:(UIView *)badgeView badgeText:(NSString *)badgeText badgeLocation:(CGPoint)badgeLocation shouldFlashBadge:(BOOL)shouldFlashBadge;

app_delegate:

-(void) AppNeedsToUpdateBadge:(int)badgeNum hasNumberChanged:(BOOL)hasNumberChanged

{

    NSString *badgeText = NULL;
    if(badgeNum > 0)
    {
        badgeText = [NSString stringWithFormat:@"%d", badgeNum];

    }


    [[AppManager sharedManager] addBadgeToView:AppButton badgeText:badgeText badgeLocation:CGPointMake(0,0) shouldFlashBadge:hasNumberChanged];


    [UIApplication sharedApplication].applicationIconBadgeNumber = badgeNum;
}  
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
user766792
  • 25
  • 1
  • 6

1 Answers1

1

You obviously haven't declared AppButton. Maybe it's named appButton? The capital A indicates that it's a class. What you want is a UIView object.

Erik B
  • 40,889
  • 25
  • 119
  • 135