Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes #113

Closed
realCJ opened this issue Oct 17, 2017 · 6 comments

Comments

@realCJ
Copy link

realCJ commented Oct 17, 2017

image

报这个错误了,在子线程更新 UI?

另外,我的 APP 的状态栏一直是隐藏的,调用 ZLPhotoBrowser 之后 状态栏就出来了,怎么设置一直隐藏啊

@longitachi
Copy link
Owner

这个警告2.4.8已经解决了,更新下即可,暂时不能设置一直隐藏,你可以在 ZLPhotoAcitonSheet的hide方法里,设置下当退出照片选择器的时候隐藏状态栏

@realCJ
Copy link
Author

realCJ commented Oct 17, 2017

好的

@realCJ
Copy link
Author

realCJ commented Oct 17, 2017

开放个 api 吧。要不每次更新还得改你的代码~

@longitachi
Copy link
Owner

好的,后续会做处理

@realCJ
Copy link
Author

realCJ commented Oct 17, 2017

更新了2.4.9,我设置了直选一张,然后直接进入编辑,点“完成”退出的时候,还是有状态栏~ 还有个问题:我设置相册内部显示拍照按钮,能不能拍完照之后页可以编辑一下

@longitachi
Copy link
Owner

不好意思,你暂时先把ZLEditViewControllerZLEditVideoViewController 里面 viewWillDisappear这个方法里的这行代码删除[UIApplication sharedApplication].statusBarHidden = NO;

然后把ZLShowBigImgViewController 的下面这个方法内的代码修改成这个

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    [UIApplication sharedApplication].statusBarHidden = NO;
    [self.navigationController setNavigationBarHidden:YES animated:NO];
    
    if (!_isFirstAppear) {
        return;
    }
    
    [_collectionView setContentOffset:CGPointMake((kViewWidth+kItemMargin)*_indexBeforeRotation, 0)];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants