iOS开发

iOS8调用系统相机延迟问题

2016-09-30  本文已影响43人  BYQiu

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


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

上一篇 下一篇

猜你喜欢

热点阅读