Zbar SDK and ios7/xcode 5 - App is reaching 100% cpu use and memory more than 100MB

前端 未结 6 984
我寻月下人不归
我寻月下人不归 2020-12-28 09:48

We are using Zbar bar code reader from last 2 years. With iOS 7 and Xcode 5, after scanning 5 bar codes the app is reaching 100 % cpu use for iOS 7 device(I can see that in

6条回答
  •  不思量自难忘°
    2020-12-28 09:59

    I solved the problem that Barry Mc G had.

    I had the same issues even after patched zBar SDK with iOS7 from http://nerdvision.net/app-development/ios/zbar-sdk. ( 5th - 6th time opening the page it freezes at 100% CPU.)

    Whether you subclass ZBarViewController or use it directly, you present the view controller and dismiss it later when you're done with the scanner. I found the reason why this happens and the reason was I didn't stop the video streaming. In ZBarReaderView, there's a function - (void)stop; and if you run this function after you are done with the scanner, you won't see the problem ( 5th - 6th time opening the page it freezes at 100% CPU.). At least in my case it worked and hope it works for you as well.

提交回复
热议问题