开发者

Expected ';' before '(' token error

开发者 https://www.devze.com 2023-03-27 14:43 出处:网络
While I wa开发者_Python百科s compiling my code , an error has been displayed saying Expected \';\' before \'(\' token.

While I wa开发者_Python百科s compiling my code , an error has been displayed saying Expected ';' before '(' token.

Here is my part of code where the error was pointed.

@class UITableViewCellEditable;

@protocol UITableViewCellEditableDelegate
- (void)editDidFinish:(NSMutableDictionary *)result //    (in this line of code)
{ 
    [userDataSource setValue:[result objectForKey:@"text"]
               forKey:[result objectForKey:@"key"]];
}
@optional

I've tried some possibilities , but still the same error ! how can I deal with it ?


You can't define method in @protocol block. It's only for declaration.

0

精彩评论

暂无评论...
验证码 换一张
取 消