Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 将Subview带到don'前面;行不通_Ios - Fatal编程技术网

Ios 将Subview带到don'前面;行不通

Ios 将Subview带到don'前面;行不通,ios,Ios,A类:B类 B类: [self.view addSubview:self.errorView] [self.view bringSubviewToFront:self.errorView]; 在ClassA中: [self.view addSubview:otherView]; 结果:在errorView上显示otherView 我希望:在前面的视野 在B班我应该做什么?谢谢。尝试在视图的窗口中添加“:[self.view.window addSubview:self.errorView]或

A类:B类

B类:

[self.view addSubview:self.errorView]
[self.view bringSubviewToFront:self.errorView];
在ClassA中:

[self.view addSubview:otherView];
结果:在errorView上显示otherView 我希望:在前面的视野
在B班我应该做什么?谢谢。

尝试在视图的窗口中添加“:[self.view.window addSubview:self.errorView]或UIWindow*mainWindow=[[UIApplication sharedApplication]keyWindow];[mainWindow addSubview:self.errorView];如何创建错误视图调用
后如何调用subview:self.errorView
[self.view addSubview:otherView]?