gpt4 book ai didi

ios - 未声明的标识符 - Xcode 4

转载 作者:行者123 更新时间:2023-11-29 13:48:37 25 4
gpt4 key购买 nike

<分区>

这似乎是一个反复出现的主题...我只有一个错误,它是行中未声明的标识符...addBadgeToView:AppButton 在 app_delegate 中带有 AppButton 是罪魁祸首。有什么想法吗?提前致谢!

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;
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com