Hi,
I have an app that has 3 views and in the top view are two toggles which slide the top view left or right ro show the views underneath like the gmail app does or the Facebook app, trouble is when i select an option in the tableview that sits in the left view it opens a url in a web view which sits in the top view (this all works fine) however if i go back and select another option it crashes the app. I can make this happen every single time. I have no idea why it is doing this, any thoughts? Here's my error log.
[ERROR] : The application has crashed with an uncaught exception 'NSRangeException'. [ERROR] : Reason: [ERROR] : *** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3] [ERROR] : Stack trace: [ERROR] : 0 CoreFoundation 0x0396a012 __exceptionPreprocess + 178 [ERROR] : 1 libobjc.A.dylib 0x033b2e7e objc_exception_throw + 44 [ERROR] : 2 CoreFoundation 0x0390c0b4 -[__NSArrayM objectAtIndex:] + 196 [ERROR] : 3 WP App 0x0007d010 -[TiViewProxy insertSubview:forProxy:] + 1520 [ERROR] : 4 WP App 0x0007d88b -[TiViewProxy relayout] + 2075 [ERROR] : 5 WP App 0x0007c333 -[TiViewProxy refreshView:] + 675 [ERROR] : 6 WP App 0x0007dba3 -[TiViewProxy layoutChildrenIfNeeded] + 259 [ERROR] : 7 WP App 0x001fb217 +[TiLayoutQueue layoutProxy:] + 87 [ERROR] : 8 WP App 0x001fafe2 performLayoutRefresh + 530 [ERROR] : 9 CoreFoundation 0x03929376 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22 [ERROR] : 10 CoreFoundation 0x03928e06 __CFRunLoopDoTimer + 534 [ERROR] : 11 CoreFoundation 0x03910a82 __CFRunLoopRun + 1810 [ERROR] : 12 CoreFoundation 0x0390ff44 CFRunLoopRunSpecific + 276 [ERROR] : 13 CoreFoundation 0x0390fe1b CFRunLoopRunInMode + 123 [ERROR] : 14 GraphicsServices 0x03ba27e3 GSEventRunModal + 88 [ERROR] : 15 GraphicsServices 0x03ba2668 GSEventRun + 104 [ERROR] : 16 UIKit 0x012c3ffc UIApplicationMain + 1211 [ERROR] : 17 WP App 0x00004748 main + 456 [ERROR] : 18 WP App 0x00003055 start + 53 [ERROR] : 19 ??? 0x00000001 0x0 + 1 [ERROR] : 2013-07-18 17:06:58.198 WP App[79490:c07] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]' [ERROR] : *** First throw call stack: [ERROR] : (0x396a012 0x33b2e7e 0x390c0b4 0x7d010 0x7d88b 0x7c333 0x7dba3 0x1fb217 0x1fafe2 0x3929376 0x3928e06 0x3910a82 0x390ff44 0x390fe1b 0x3ba27e3 0x3ba2668 0x12c3ffc 0x4748 0x3055 0x1) -- End simulator log --------------------------------------------------------- [ERROR] : An error occurred running the iOS Simulator [ERROR] : [ERROR] : Project failed to build after 26s 135ms