由于
某种原因,我无法按 ctrl+将我的视图拖动到 viewcontroller.h 来创建 IBOutlet。任何人都知道我能做些什么来让它工作?
请看截图:https://i.stack.imgur.com/xM1LP.png
这是我的视图控制器.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
右键单击您的网络视图,看看是否有任何连接。 有时发生这种情况是因为您已经有了某种联系并最终再次给予。