@interface SomeClass : NSObject { } @end @implementation SomeClass -(void) awesomeMethod600 { } @end
There is no error and awesomeMethod600 is working.
Method declarations in class interfaces exist for the compiler (to suppress warnings), since the method is searched in Objective-C at run time, not compile time.
Perspx is right.
Try creating this in Xcode:
@implementation SomeClass -(void)awesomeMethod { [self notAwesomeMethod]; } -(void)notAwesomeMethod {} @end
, "SomeClass" "-notAwesomeMethod". ... , notAwesomeMethod , , , . .
notAwesomeMethod
, .h.
.h
Source: https://habr.com/ru/post/1740531/More articles:MySQL: how to do multiple searches over the full text of a table - mysqlError binding ASP MVC2 model to POST with strongly typed HTML helpers - c #Struct element [array versus pointer] - cArguments for migrating from LINQtoSQL to Nhibernate? - linq-to-sqlFBML tag for determining user language on a tab - facebookIs it possible to sort a collection of UIView NSArray based on their tag? - sortingProcessing optional request parameters - asp.netDoes AdSense submit an HTML HTML page for analysis? If not, how? - javascriptInstalling Python Script, maintaining a reference to Python 2.6 - pythonAndroid: more scrolling - androidAll Articles