出现的原因: 在控制器A中添加控制器B--[A.view addSubView: B.view] 在控制器B中弹出新的控制器时报此waring 解决: [A addChildViewController:B]; [B.parentViewController presentViewControlle ...
分类:
移动开发 时间:
2016-09-22 12:52:23
阅读次数:
464
在开发中:用[self presentViewController:VC animated:YES completion:nil];实现跳转,多次跳转后,直接返回第一个。例如:A presentViewController BB presentViewController CC 直接回到A:返回第一...
分类:
移动开发 时间:
2016-01-02 18:32:00
阅读次数:
287
开发中常见错误和警告总结(二十一) 对Warning: Attempt to present on whose view is not in the window hierarchy!的解决方案 当我想从一个VC跳转到另一个VC的时候,一般会用- (void)presentViewControlle...
分类:
移动开发 时间:
2015-08-27 21:08:13
阅读次数:
171
利用present进入的视图控制器,在当前视图控制器里获取present的视图控制器
self.presentingViewController
获取当前视图控制器presented的视图控制器
self.presentedViewController...
分类:
其他好文 时间:
2015-08-27 13:29:35
阅读次数:
227
present出ViewController的页面为透明的...
分类:
其他好文 时间:
2015-08-19 20:22:14
阅读次数:
179
在ipad的ios8.0系统上,actionsheet上点击响应后如果调用了UIImagePickerController *picker = [[UIImagePickerController alloc] init];1 [self.controller presentViewControlle...
分类:
移动开发 时间:
2014-11-11 12:39:10
阅读次数:
204
先看一下效果图:
用如下代码,想弹出一个模态窗口,设置它的背景透明度为0.5,却发觉prsent后的背景色变为黑色的。
ShareVC *share = [[ShareVC alloc] init];
[self presentViewController:share animated:YES completion:nil];
起初还以为是设置透明度或者是[UIColor clear...
分类:
其他好文 时间:
2014-08-05 22:41:00
阅读次数:
339
跳转页面的时候 我用的是 [self presentViewController:nLogin animated:NO completion:^{
}];,有A到B再到C,我现在再C页面返回的时候我想直接跳转到A页面 应该怎么做呢?
在C中
//关掉自己
[self
dismissViewControllerAn...
分类:
其他好文 时间:
2014-06-20 12:25:46
阅读次数:
237