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
  • 665,005
  • 155
  • 1,345
  • 1,328
user766792
  • 25
  • 1
  • 5

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
  • 38,477
  • 23
  • 111
  • 127