2011-06-11 125 views
2

我開始在我的應用程序上使用ios 5,我發現avfoundation無法正常工作。 :CGBitmapContextCreateImage:無效的上下文爲0x0AVFoundation在ios5上無法正常工作

我cheched和在:

- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection { 

sampleBuffer是nil i上運行時,我有這種錯誤具有從https://web.archive.org/web/20160512235332/https://developer.apple.com/library/ios/qa/qa1702/_index.html#//apple_ref/doc/uid/DTS40010192

標準代碼。 這是怎麼回事?

+0

發佈您的代碼在哪裏使用CGBitmapContextCreateImage – Rams 2011-06-11 13:07:29

+0

'5'的iOS是保密協議。請在開發者論壇中提問。 – 2011-06-11 13:45:20

回答