google-code-export / tibar

Automatically exported from code.google.com/p/tibar
1 stars 0 forks source link

Would it be possible to dismiss ZBarReaderViewController before firing events (success|error|cancel)? #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The problem description:

I've got a modal window that gets opened from 'success' eventHandler of tibar 
module. Would it be possible to move the line '[reader 
dismissModalViewControllerAnimated: YES];' before '[self 
_fireEventToListener...]' to prevent having ios errors such as below?

*** Terminating app due to uncaught exception 
'NSInternalInconsistencyException', reason: 'Attempting to begin a modal 
transition from <ZBarReaderViewController: 0x672220> to 
<UINavigationController: 0x68a4f0> while a transition is already in progress. 
Wait for viewDidAppear/viewDidDisappear to know the current transition has 
completed'

What version of the product are you using? On what operating system?
Titanium Mobile SDK: 1.8.0.1
Titanium Developer: ?
XCode: 4.2.1
iOS: 5
iPhone: 4s
iPhone iOS: 5

Original issue reported on code.google.com by jlee...@gmail.com on 19 Jan 2012 at 6:59

GoogleCodeExporter commented 9 years ago
well actually I found out what I proposed doesn't work, should use 
dismissViewControllerAnimated:completion: instead with completion callback to 
fire the event to listener...

dismissModalViewControllerAnimated is deprecated by the way

Original comment by jlee...@gmail.com on 25 Jan 2012 at 11:53

GoogleCodeExporter commented 9 years ago
I am having the same problems. Have you found a work-around?

Original comment by munzeei...@gmail.com on 6 Mar 2012 at 2:08