I just created a Xcode 4 Single View project (without storyboard), drag and drop an UIWebView and then started to type
#import <UIKit/UIKit.h>
@interface myViewController : UIViewController
IBOutlet UI...
@end
But Xcode Intellisense does only show UIKit and UIViewController and not UIWebView why ? Sorry it’s a beginner’s question 🙂
It’s because ivars needs to be in brackets.
A regular class/interface in Obj-c should look like