iOS Question Can't add self as subview

mohammadreza hosseinzadeh

Member
Licensed User
hi there
im getting problem with my project
when i go forward and click back and repeat this proccess 3 or 5 times its crashed with error and said Can't add self as subview
and point to a line that is a end sub
could some one help me?
sorry for my bad english
B4X:
Error occurred on line: 339 (mainpage)
Can't add self as subview
Stack Trace: (
  CoreFoundation       __exceptionPreprocess + 171
  libobjc.A.dylib      objc_exception_throw + 48
  CoreFoundation       +[NSException raise:format:] + 197
  UIKit                -[UIView(Internal) _addSubview:positioned:relativeTo:] + 122
  UIKit                __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_2 + 2305
  UIKit                +[UIView(Animation) performWithoutAnimation:] + 90
  UIKit                __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 260
  UIKit                +[UIView(Internal) _performBlockDelayingTriggeringResponderEvents:] + 188
  UIKit                -[_UINavigationParallaxTransition animateTransition:] + 1270
  UIKit                -[UINavigationController _startCustomTransition:] + 3678
 UIKit                -[UINavigationController _startDeferredTransitionIfNeeded:] + 686
 UIKit                -[UINavigationController __viewWillLayoutSubviews] + 150
 UIKit                -[UILayoutContainerView layoutSubviews] + 231
 UIKit                -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1439
 QuartzCore           -[CALayer layoutSublayers] + 159
 QuartzCore           _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 401
 QuartzCore           _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 364
 QuartzCore           _ZN2CA11Transaction6commitEv + 500
 QuartzCore           _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 76
 CoreFoundation       __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
 CoreFoundation       __CFRunLoopDoObservers + 430
 CoreFoundation       __CFRunLoopRun + 1572
 CoreFoundation       CFRunLoopRunSpecific + 409
 GraphicsServices     GSEventRunModal + 62
 UIKit                UIApplicationMain + 159
 result               main + 111
 libdyld.dylib        start + 1
)
SignalHandler 6
 
Top