iOS - 解决Warning: Attempt to present <UIImagePickerController: 0x7f9ba106a000>which is already presen

来源:互联网 发布:eclipse打包java程序 编辑:程序博客网 时间:2024/05/17 03:41

Warning: Attempt to present <UIImagePickerController: 0x7f9ba106a000>  on <MemberViewController: 0x7f9ba0dae310> which is already presenting (null)

__weak typeof(self) weakSelf = self;if([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0){    [[NSOperationQueue mainQueue] addOperationWithBlock:^{                [self presentViewController:weakSelf.ipc animated:NO completion:nil];    }];    }else{        [self presentViewController:weakSelf.ipc animated:NO completion:nil];}




0 0
原创粉丝点击