0

For example, the following method works:

- (void)feedBackController:(FeedbackController *)controller didReceiveLiveUnlikeComment:(NSString *)commentID;

but this next method doesn't:

- (void)feedBackController:(FeedbackController *)controller didReceiveLiveLike:;

I get the syntax error: "Expected :"

Rose Perrone
  • 61,572
  • 58
  • 208
  • 243
  • Related? Duplicate? [Why must the last part of an ObjC method name take an argument?](http://stackoverflow.com/q/4479967) I'm not quite sure what you're asking. – jscs Feb 25 '13 at 23:14

2 Answers2

1

If you don't have a param, you should do:

- (void)feedBackControllerDidReceiveLiveLike:(FeedbackController *)controller;

For more method naming conventions, check out Objective C method naming convention

Community
  • 1
  • 1
StephShelley
  • 114
  • 2
0

I think, you have to mention the second parameter type and name

or just use id as a type and pass whatever you need

Shamsudheen TK
  • 30,739
  • 9
  • 69
  • 102