I am new to iOS. I have defined the following method in a .m file and need to add its name to the .h file.
-(Boolean) addBookFromArrayOne:(Book*)bookOne bookTwo:(Book*)bookTwo mergeByThisField:(NSString*)field sortDescending:(Boolean)
This post Method Syntax in Objective C was very helpful in learning the Objective C method syntax. The answer
in Objective-C, the name of a method is composed of all of the portions of the declaration that are not arguments and types. This method's name would therefore be: pickerView:numberOfRowsInComponent:
was particularly helpful.
But it does not show how to generalize to multiple parameters.
I took a guess at the syntax in the header file but am clearly getting it wrong:
@property Boolean addBookFromArrayOne:bookTwo:mergeByThisField:sortDescending;
Can somebody show me how to define this method name in the header file?