2013-04-11 70 views
2

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 
+0

請顯示完整的.h和.m文件。 – 2013-04-11 06:50:27

回答

0

未完全執行警告語義問題不完全 實施

在聲明接口方法和實現文件中沒有具體定義這被認爲是。

參數不匹配的數量是愚蠢的錯誤之一。

+0

保持它先生,你是在印度的iOS有史以來最好的人之一..好運 – Buntylm 2013-04-11 07:05:33

+0

@BuntyMadan:沒有那樣的。我仍在學習。是的,我想我有17K分,但我知道很多高級職業選手在可可中有14年的經驗,但是沒有。我不是iOS開發人員。 :) – 2013-04-11 07:07:15

+0

無論我分享我的想法。像我這樣的新手得到很多像你這樣的人的動力謝謝 – Buntylm 2013-04-11 07:08:46

2

沒有你的代碼,請檢查這個。

In the Case of `Semantic Issue - Incomplete implementation` 

Xcode會告訴你你錯過了什麼。 步驟:Choose View > Navigators > Show Issue Navigator, 然後拒絕所有披露三角形: 希望它能幫助你。

enter image description here

+0

如何刪除可可應用程序中的webview – Sierra 2013-04-11 07:05:34

+0

#import #import @interface SecondController:NSViewController @property(nonatomic,retain)IBOutlet WebView * webv; (BOOL)networkalertfunction; – Sierra 2013-04-11 07:29:07

+0

[self.WebView removeFromSuperview];使用此行刪除它。 – Buntylm 2013-04-11 07:32:46

相關問題