registrocome risolvere avvertimento dichiarazione implicita di funzione in Objective C
warning: implicit declaration of function 'TutorialAlertWithMessageAndDelegate'
qui il mio codice
.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];
}
Avrei bisogno del codice che genera questo avviso, non del codice che definisce la funzione: è lì che si trova il problema. –