iOS zxing 2.2 performance issue

瀏覽次數:189 次
跳到第一則未讀訊息

Glen

未讀,
2013年6月17日 下午3:26:292013/6/17
收件者:zx...@googlegroups.com

Hello all,

I recently tried upgrading my app from zxing 2.1 to 2.2. I have a modified OverlayView class that puts views on top of the zxingwidgetcontroller. One of the views is a UISwitch to turn the camera light on and off.

After upgrading to zxing 2.2, UI elements are very unresponsive. Clicking the switch or a navigation bar button takes 2-10 seconds or doesn't happen at all. If I use the same overlay class using zxing 2.1 I do not have this issue.

I'm using XCode 4.6.3, ARC, Storyboards, iOS SDK 6.1 and testing on an iPhone 4.

Please help!

Steven Parkes

未讀,
2013年6月17日 晚上9:55:352013/6/17
收件者:Glen、zx...@googlegroups.com
Are you using a custom overlay?

Are you using the same set of decoders? (I think this changed in 2.2; there may be more default decoders, though I don't think it should have this effect. In any case, if you only care about, for example, qr codes, try specifically asking for the qr decoder only, if you're not.)
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "zxing" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to zxing+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Glen Yi

未讀,
2013年6月17日 晚上10:56:262013/6/17
收件者:zx...@googlegroups.com、Glen
I'm using a customized version of OverlayView. Instead of drawing the overlay in drawRect, I'm putting views in the init call. I'm only using QRCodeReader, not the multi reader.

In zxing 2.2, I change OverlayView for my customization, but all UI elements are incredibly slow to respond. The ZxingwidgetController has a switch and a navigationbar.
回覆所有人
回覆作者
轉寄
0 則新訊息