I’m getting an “Implicit declaration of function ‘pathInDocumentDirectory’” warning for this line of code while trying to develop my first iPhone app:
NSString *imagePath = pathInDocumentDirectory(s);
Strangely, I can’t find any good information on what to do about this. Does anyone know how to get rid of the warning? Thanks!
If that is an inline function, move the declaration to the top of the implementation file (before anything uses it).
If it’s a method you’ve written it should be an objective-c method…
Then you use…
Don’t forget to declare the method in either the header or a private category in the implementation file.