Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 81

Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
04/01/13 04:00 PM (12 years ago)

Minor quiz plugin bug on ipad - looking for a fix

I don't know why it took me so long to notice this - when a user reaches the finish screen on the quiz (the action sheet with all the options - share score, play again, quit, etc.) if they accidentally tap outside of that screen it crashes the whole app with this error - 2013-04-01 15:01:04.370 onedirectionv2[2190:c07] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds [0 .. 5]' *** First throw call stack: (0x3ea2012 0x34e7e7e 0x3e440b4 0x2085af1 0x9cca8 0x207433d 0x20743d6 0x2168af7 0x2169448 0x1ce1df6 0x1cd4d66 0x1cd4f04 0x31fa7d8 0x41c4014 0x41b47d5 0x3e48af5 0x3e47f44 0x3e47e1b 0x43fb7e3 0x43fb668 0x1c96ffc 0x4bd16 0x2665) libc++abi.dylib: terminate called throwing an exception (lldb) Is there a way to get the device to ignore taps outside the action sheet, or maybe even to register outside taps as "Quit"?
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
04/01/13 04:04 PM (12 years ago)
The UIActionSheet in the quiz has caused me so much pain. This is just random searching: http://stackoverflow.com/questions/12318440/prevent-accidental-dismissal-of-uiactionsheet-on-ipad The UIActionsheet isn't implemented very well by apple. Its implementation is too inconsistent.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
04/01/13 04:07 PM (12 years ago)
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/01/13 04:50 PM (12 years ago)
How did you get a 'share score' option?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/01/13 05:13 PM (12 years ago)
got it working perfect - I noticed that the email image plugin has the exact functionality I was looking for so I copied the action sheet format from that screen @trouty - You need to do a little bit of coding to add the 'Share Score' option..it can't be done from the control panel. It basically involves adding a button the the action sheet and then having that button bring up a "share sheet". If you do a search for "social framework" you'll get a good idea of how these sheets work
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/01/13 05:25 PM (12 years ago)
Thanks, will look into it... Have somehow managed to get Scringo implemented so im kinda hoping to do quiz score to Scringo wall type thang
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.