I have a class with a method that works and I have tested it but xcode still raises a warning over the method:
MapPoint *mp = [[MapPoint alloc] initWithCoordinate:[newLocation coordinate]
title:[locationTitleField text]];
no ‘initWithCoordinate:title’ method found?
As Johannes said, you should declare the method in the header file of the class.
If you are not using the method outside of the class implementation, you can create an anonymous category declaration at the top of your .m file:
An anonymous category “extends” your existing class with new methods. Since you’re declaring it inside your source file (.m) instead of a header file (.h), it will only be visible to code in that source file.