journalcomment résoudre avertissement déclaration implicite de la fonction dans l'objectif C
warning: implicit declaration of function 'TutorialAlertWithMessageAndDelegate'
ici mon code
.h
void TutorialAlertWithMessageAndDelegate(NSString *title, NSString *message, id delegate);
.m
void TutorialAlertWithMessageAndDelegate(NSString *title, NSString *message, id delegate)
{
/* open an alert with OK and Cancel buttons */
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title
message:message
delegate:delegate
cancelButtonTitle:@"Dismiss"
otherButtonTitles: @"Show Tutorial", @"Disable Tutorial", nil];
// otherButtonTitles: @"Show Next Tip", @"Disable Tips", nil];
[alert show];
[alert release];
}
J'ai besoin du code qui génère cet avertissement, pas du code qui définit la fonction: c'est là que réside le problème. –