美文网首页iOS开发
iOS8调用系统相机延迟问题

iOS8调用系统相机延迟问题

作者: BYQiu | 来源:发表于2016-09-30 14:06 被阅读43次

iOS8在调用系统相机拍照时,会有一两秒的停顿,需要将 modalPresentationStyle 设置为 UIModalPresentationOverCurrentContext即可


    if([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
        
        self.modalPresentationStyle = UIModalPresentationOverCurrentContext;
        
    }

相关文章

网友评论

    本文标题:iOS8调用系统相机延迟问题

    本文链接:https://www.haomeiwen.com/subject/jpolyttx.html