[英]Why Xcode doesn't show intellisense for UIWebView
我剛剛創建了一個Xcode 4 Single View項目(沒有情節提要),拖放UIWebView然后開始輸入
#import <UIKit/UIKit.h>
@interface myViewController : UIViewController
IBOutlet UI...
@end
但是Xcode Intellisense只顯示UIKit和UIViewController而不顯示UIWebView為什么? 抱歉,這是一個初學者的問題:)
這是因為ivars需要放在方括號中。 Obj-c中的常規類/接口應類似於
@interface CLASSNAME (: PARENTCLASS)
{
ivars;
}
- (returntype) instance methods/properties;
+ (returntype) class methods;
@end
我想,您沒有包含標題。 XCode僅建議范圍內的標識符。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.