无法拖动视图以创建IBOutlet

时间:2013-10-22 13:45:10

标签: c++ iphone ios objective-c xcode

出于某种原因,我不能按住Ctrl +拖动我的视图到viewcontroller.h来创建一个IBOutlet。任何人都有任何想法,我可以做些什么来使这个工作?

请看截图: http://i.imgur.com/I25VCV1.png

这是我的viewcontroller.m

#import "ViewController.h"
#import "SelectVideo1.h"

@interface ViewController ()

@end

@implementation ViewController
@synthesize littleView;
- (void)viewDidLoad
{
[super viewDidLoad];
    NSURL *myURL = [NSURL URLWithString:@"http://yahoo.com"];
    NSURLRequest *myRequest = [NSURLRequest requestWithURL:myURL];
    [littleView loadRequest:myRequest];
}

@end

1 个答案:

答案 0 :(得分:0)

右键单击您的Web视图,查看是否有任何连接。有时它会发生,因为你已经有了一些联系并最终再次给予。