在其他演示中效果很好,但是在我的项目中崩溃了。我用Google搜索“ CAMPreviewViewController”,但什么也没找到
library(tidyr)
separate(df, V1, c("V1", "V2", "V3"), " ")
#### OUTPUT ####
V1 V2 V3
1 DEV+M0001000 1514779200 1571637600
2 DEV+M0001CAL 1567108800 1567195200
3 DEV+M0003000 1514779200 1571637600
4 DEV+M0003CAL 1567105200 1567108800
5 DEV+M0004000 1514779200 1571637600
6 DEV+M0004CAL 1567108800 1567195200
崩溃
-[CAMPreviewViewController _updateIndicatorsForMetadataObjectResults:viewType:viewClass:frameCallback:minimumAreaChangeThreshold:minimumAreaFractionChangeThreshold:],/ BuildRoot / Library / Caches / com.apple.xbs / Sources / Camera / Camera / Camera / Camera-3602.9.230 / CAMPreviewViewController.m:1152
答案 0 :(得分:0)
尝试这个
var imagePicker: UIImagePickerController!
@IBAction func takePhotoAction(_ sender: UIButton) {
imagePicker = UIImagePickerController()
imagePicker.delegate = self
imagePicker.sourceType = .camera
present(imagePicker, animated: true, completion: nil)
}
Add This to class as delegates
UINavigationControllerDelegate, UIImagePickerControllerDelegate