我将官方demo,改为ipad程序
1.在Navigation Bar上的前后摄像头按钮不好用,我换成toolbar添加按钮,是好用的
2.当我调用官方的前后摄像头切换是报错,错误信息如下:
2014-01-11 11:31:48.874 AnyChat[7622:3907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** Can't add <AVCaptureDeviceInput: 0x6cd970 [Front Camera]> because the device does not support AVCaptureSessionPreset1280x720. Use -[AVCaptureDevice supportsAVCaptureSessionPreset:].' *** First throw call stack: (0x37e868bf 0x379d21e5 0x308b3129 0x308b33d7 0x1ffb85 0x1ff043 0x1fc517 0x3794ac1d 0x3794aad8) terminate called throwing an exception
|