Hi zusammen,
im Simulator stürzt mein App nicht ab, aber sobald ich es auf dem iphone laufen lasse, stürzt es mir mit folgendem Fehler ab:
Alles anzeigen
Der Fehler passiert beim aufruf eines Scrollview in einer Tabbar
im Simulator stürzt mein App nicht ab, aber sobald ich es auf dem iphone laufen lasse, stürzt es mir mit folgendem Fehler ab:
Quellcode
- *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 0]'
- *** Call stack at first throw:
- (
- 0 CoreFoundation 0x32f4e64f __exceptionPreprocess + 114
- 1 libobjc.A.dylib 0x33391c5d objc_exception_throw + 24
- 2 CoreFoundation 0x32f4e491 +[NSException raise:format:arguments:] + 68
- 3 CoreFoundation 0x32f4e4cb +[NSException raise:format:] + 34
- 4 QuartzCore 0x35acc61d _ZL18CALayerSetPositionP7CALayerRKN2CA4Vec2IdEEb + 140
- 5 QuartzCore 0x35acc58b -[CALayer setPosition:] + 38
- 6 QuartzCore 0x35acc4d7 -[CALayer setFrame:] + 390
- 7 UIKit 0x329dc455 -[UIView(Geometry) setFrame:] + 188
- 8 Baseball 0x00058aeb -[ErgebnisViewController loadScrollViewWithPage:] + 466
- 9 Baseball 0x00058559 -[ErgebnisViewController viewWillAppear:] + 932
- 10 UIKit 0x32a18301 -[UINavigationController viewWillAppear:] + 220
- 11 UIKit 0x32a4b233 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 154
- 12 UIKit 0x32a4b18d -[UITabBarController transitionFromViewController:toViewController:] + 32
- 13 UIKit 0x32a4aa33 -[UITabBarController _setSelectedViewController:] + 186
- 14 UIKit 0x32acfceb -[UITabBarController setSelectedViewController:] + 14
- 15 UIKit 0x32acfbe7 -[UITabBarController _tabBarItemClicked:] + 226
- 16 CoreFoundation 0x32ebe571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
- 17 UIKit 0x329f3ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
- 18 UIKit 0x329f3e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
- 19 UIKit 0x32acfa8b -[UITabBar _sendAction:withEvent:] + 270
- 20 CoreFoundation 0x32ebe571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
- 21 UIKit 0x329f3ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
- 22 UIKit 0x329f3e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
- 23 UIKit 0x329f3e3b -[UIControl sendAction:to:forEvent:] + 38
- 24 UIKit 0x329f3b8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
- 25 UIKit 0x32a2dbd9 -[UIControl sendActionsForControlEvents:] + 16
- 26 UIKit 0x32be28d9 -[UITabBar(Static) _buttonDownDelayed:] + 48
- 27 Foundation 0x33e8f6d5 __NSFireDelayedPerform + 368
- 28 CoreFoundation 0x32f25a47 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
- 29 CoreFoundation 0x32f27ecb __CFRunLoopDoTimer + 850
- 30 CoreFoundation 0x32f28845 __CFRunLoopRun + 1088
- 31 CoreFoundation 0x32eb8ec3 CFRunLoopRunSpecific + 230
- 32 CoreFoundation 0x32eb8dcb CFRunLoopRunInMode + 58
- 33 GraphicsServices 0x33a2141f GSEventRunModal + 114
- 34 GraphicsServices 0x33a214cb GSEventRun + 62
- 35 UIKit 0x32a05d69 -[UIApplication _run] + 404
- 36 UIKit 0x32a03807 UIApplicationMain + 670
- 37 Baseball 0x000028e7 main + 70
- 38 Baseball 0x0000289c start + 40
- )
- terminate called after throwing an instance of 'NSException'
Der Fehler passiert beim aufruf eines Scrollview in einer Tabbar