小编Did*_*adi的帖子

UIImagePickerController错误:在iOS 7中快照未呈现的视图会导致空快照

我只在iOS 7中收到此错误并且应用程序崩溃了.在iOS 6中,我从未收到任何错误,只是在打开相机时出现内存警告.

Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
Run Code Online (Sandbox Code Playgroud)

这就是我在做的事情.

imagePicker = [[UIImagePickerController alloc] init];
[imagePicker setDelegate:self];
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[imagePicker setAllowsEditing:YES];

[self presentModalViewController:imagePicker animated:YES];
Run Code Online (Sandbox Code Playgroud)

我确实试图延迟presentModalViewController,但我仍然得到相同的消息.几秒钟后(7-10),应用程序崩溃了.

此错误仅出现在iOS 7中.

有人有线索吗?先感谢您.

iphone camera uiimagepickercontroller ios ios7

103
推荐指数
4
解决办法
7万
查看次数

使用Slim Framework进行Nginx配置,如何保留.php网址

我的服务器刚刚被提供程序清除,我没有Nginx配置文件的备份.我完全幸运地工作了,现在我不知道该怎么做.

所以我有多个文件来做一些特定的事情,我在每个文件上使用Slim Framework.我们的想法是将URL扩展保留在URL上.像这样的东西:

www.example.com/service.php/customer/1
www.example.com/api.php/data
www.example.com/test.php/other-data/5

有没有人对此有所了解?我真的忘记了之前的配置.

先感谢您

php configuration nginx slim

1
推荐指数
1
解决办法
4708
查看次数

标签 统计

camera ×1

configuration ×1

ios ×1

ios7 ×1

iphone ×1

nginx ×1

php ×1

slim ×1

uiimagepickercontroller ×1