服务器400错误的解决方法,解决http400错误的方法

2022年 10月 28日 发表评论
腾讯云正在大促:点击直达 阿里云超级红包:点击领取
免费/便宜/高性价比服务器汇总入口(已更新):点击这里了解

今天在做练习创建多个视图程序的时候,老是出现下面这样的错误:

?

p.p1 {margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo}?

'-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "BlueView" nib but the view outlet was not set.'

?

查书才知道,没有做nib文件到xxxViewControler程序的关联,特此记录下来:

?

1, 打开nib文件

2, 点击"File's Owner", 按command+4,设置Class为xxxViewControler

3, 按Control+"Files's Owner", 里面有个默认的IBOutlet变量view, 看一下后面有没有做关联,如果没有就拉到下面的View和视图做个关联

?

- (IBAction)gagal:(id)sender {? ? NSLog(@"sggsg"); ? BnViewController * next = [[BnViewController alloc]initWithNibName:@"MyView" bundle:nil]; ? ? [self presentViewController:next animated:YES completion:nil];? ? //[self.navigationController pushViewController:next animated:YES];} 48448495

小咸鱼

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: