iOS Question Can't add self as subview

Discussion in 'iOS Questions' started by mohammadreza hosseinzadeh, May 11, 2018.

  1. mohammadreza hosseinzadeh

    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
    Code:
    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You need to provide more information. Are you doing anything in Page_Appear or Disappear events?
     
  3. mohammadreza hosseinzadeh

    mohammadreza hosseinzadeh Member Licensed User

    no
    i just use islider and this error is couse of navigation controller problem i fixed it tnx alot dear erel.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice