开发者

Expected ';' before '(' token error

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜