acktie / Acktie-Mobile-iOS-QR-Reader

Acktie Mobile QR module is an easy to use yet powerful QR code reader.
Other
25 stars 7 forks source link

Usage in modal dialog crashes when removing the scanner view #9

Closed pke closed 9 years ago

pke commented 9 years ago

When this thing is added to a modal dialog it cannot be removed. When calling view.remove(scannerView) the app totally crashes with the last debug output being "inside dealloc`.

When used in a normal view (non-modal) the removal works.

pke commented 9 years ago

The error can be fixed by moving the view that the QRScannerView is added to from top-level to a sub-view.

Before

<alloy>
<view id="qrscanner">
  <views.../>
</view>
</alloy>

after

<alloy>
<view id="qrscannerContainer">
  <views.../>
  <view id="qrscanner">
</view>
</alloy>