Iphone 预期的'';在'之前;(';令牌错误
当我编译代码时,显示了一个错误,显示为Expected';'before'('token.Iphone 预期的'';在'之前;(';令牌错误,iphone,objective-c,ios,compiler-errors,Iphone,Objective C,Ios,Compiler Errors,当我编译代码时,显示了一个错误,显示为Expected';'before'('token. 下面是我指出错误的代码部分 @class UITableViewCellEditable; @protocol UITableViewCellEditableDelegate - (void)editDidFinish:(NSMutableDictionary *)result // (in this line of code) { [userDataSource setValue:[r
下面是我指出错误的代码部分
@class UITableViewCellEditable;
@protocol UITableViewCellEditableDelegate
- (void)editDidFinish:(NSMutableDictionary *)result // (in this line of code)
{
[userDataSource setValue:[result objectForKey:@"text"]
forKey:[result objectForKey:@"key"]];
}
@optional
我尝试过一些可能性,但仍然是同样的错误!
如何处理它?您不能在@protocol块中定义方法。它仅用于声明。您不能在@protocol块中定义方法。它仅用于声明