ios - Call a function of an another class (protocol) -


i have slide out navigation panel (menu) , "menu" on first page.

enter image description here

slide out menu:

  • index
  • page 1
  • page 2
  • page 3
  • page 4

on index:

  • page 1
  • page 2
  • page 3
  • page 4

so user have access pages index or sliding (or tap on icon menu) have menu.

but have error: go page 1 index, tap on icon menu slide out menu tap on index, go page 1 again index, , here if tap again on icon menu, error: sigbrt (something that)

i did breakpoints:

on line: self.delegate?.pushviewcontrollerinstack!(uistoryboard.nosoffresviewcontroller(‌​)!)

and 1 in function pushviewcontrollerinstack

and when maniplations, app read line self.delegate?.pushviewcontrollerinstack!(uistoryboard.nosoffresviewcontroller(‌​)!) don't go in function.

so view lost access of function, don't know why , how fix issue.

there's lot of code, can find git repository here: https://github.com/vkt0r/slideoutsidebartest

the error:

2015-10-28 09:00:33.038 solutis[477:5075] -[solutis.nosoffresviewcontroller menunosoffrestapped:]: unrecognized selector sent instance 0x7ff5caf464e0 2015-10-28 09:00:33.045 solutis[477:5075] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[solutis.nosoffresviewcontroller menunosoffrestapped:]: unrecognized selector sent instance 0x7ff5caf464e0' *** first throw call stack: (     0   corefoundation                      0x000000010f3b1f65 __exceptionpreprocess + 165     1   libobjc.a.dylib                     0x0000000111268deb objc_exception_throw + 48     2   corefoundation                      0x000000010f3ba58d -[nsobject(nsobject) doesnotrecognizeselector:] + 205     3   corefoundation                      0x000000010f307f7a ___forwarding___ + 970     4   corefoundation                      0x000000010f307b28 _cf_forwarding_prep_0 + 120     5   uikit                               0x000000010fdf31fa -[uiapplication sendaction:to:from:forevent:] + 92     6   uikit                               0x00000001101d5247 -[uibarbuttonitem(uiinternal) _sendaction:withevent:] + 152     7   uikit                               0x000000010fdf31fa -[uiapplication sendaction:to:from:forevent:] + 92     8   uikit                               0x000000010ff57504 -[uicontrol sendaction:to:forevent:] + 67     9   uikit                               0x000000010ff577d0 -[uicontrol _sendactionsforevents:withevent:] + 311     10  uikit                               0x000000010ff5794b -[uicontrol _sendactionsforevents:withevent:] + 690     11  uikit                               0x000000010ff56906 -[uicontrol touchesended:withevent:] + 601     12  uikit                               0x000000010fe5daa3 -[uiwindow _sendtouchesforevent:] + 835     13  uikit                               0x000000010fe5e691 -[uiwindow sendevent:] + 865     14  uikit                               0x000000010fe10752 -[uiapplication sendevent:] + 263     15  uikit                               0x000000010fdebfcc _uiapplicationhandleeventqueue + 6693     16  corefoundation                      0x000000010f2de0a1 __cfrunloop_is_calling_out_to_a_source0_perform_function__ + 17     17  corefoundation                      0x000000010f2d3fcc __cfrunloopdosources0 + 556     18  corefoundation                      0x000000010f2d3483 __cfrunlooprun + 867     19  corefoundation                      0x000000010f2d2e98 cfrunlooprunspecific + 488     20  graphicsservices                    0x000000011485bad2 gseventrunmodal + 161     21  uikit                               0x000000010fdf1676 uiapplicationmain + 171     22  solutis                             0x000000010f1b892d main + 109     23  libdyld.dylib                       0x0000000111d8092d start + 1     24  ???                                 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception (lldb)  

you linked action bar item you linked action bar item

and commented it: and commented it

so crash when try open menu @ page.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -