不完整的实施为什么我无法解决这个问题

时间:2013-04-11 06:43:17

标签: ios objective-c

Plz有人告诉我如何解决不完整的实施警告:

  

语义问题 - 不完整的实现)@interface SecondController   ()@end

     

@implementation SecondController

编辑:

 #import "SecondController.h" 

 @interface SecondController ()
 @end 

 @implementation SecondController

 @synthesize webv;
   - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
       self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
       if (self) {

       }
        return self;
    }  
   -(void)setWebv:(WebView *)webview {
       [[webview mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.yahoo.com"]]];
       [self alertfunction];
     }
 @end

2 个答案:

答案 0 :(得分:2)

如果没有您的代码,请查看此内容。

In the Case of `Semantic Issue - Incomplete implementation`  

Xcode会告诉你你缺少什么。 步骤:Choose View > Navigators > Show Issue Navigator, 然后调低所有披露三角形: 希望它会对你有所帮助。

enter image description here

答案 1 :(得分:0)

  

不完整的实施警告语义问题 - 不完整   实施

当您在接口中声明方法并且未在实现文件中定义它们时,可以看到这种情况。

参数不匹配的数量是一个愚蠢的错误。

相关问题