ios - Error in switching view from drawer -


im trying go view drawer. want call storyboard because existing setup on hardcoded uiview display.

class drawercontainercontenthandler: uiviewcontroller, drawercontainercontenthandlerprotocol {      var currentcontent: drawercontainercontentprotocol?      func handlecontentwithtype<t>(_ type: t, viewcontroller: drawercontainerviewcontroller) {         guard let name = type as? string,             currentcontent?.drawercontentid != name else {             return         }          var newcontent: drawercontainercontentprotocol?          switch name {          case "rewards":              let storyboard = uistoryboard(name: "rewards", bundle: nil)             let vc = storyboard.instantiateviewcontroller(withidentifier: "rewardsviewcontroller") as! rewardsviewcontroller             let _ = vc.embedinnavigationcontroller()             viewcontroller.changecontentusing(vc as! drawercontainercontentprotocol)             newcontent = vc as! drawercontainercontentprotocol   

then, error.

myapp`___lldb_unnamed_symbol704$$myapp:         0x10043f700 <+0>:  sub    sp, sp, #0x20             ; =0x20          0x10043f704 <+4>:  stp    x29, x30, [sp, #0x10]         0x10043f708 <+8>:  add    x29, sp, #0x10            ; =0x10          0x10043f70c <+12>: str    x0, [sp, #0x8]         0x10043f710 <+16>: mov    x0, x1         0x10043f714 <+20>: mov    x1, x2         0x10043f718 <+24>: bl     0x100b03888               ; symbol stub for: swift_conformstoprotocol         0x10043f71c <+28>: str    x0, [sp]         0x10043f720 <+32>: cbz    x0, 0x10043f738           ; <+56>         0x10043f724 <+36>: ldr    x0, [sp, #0x8]         0x10043f728 <+40>: ldr    x1, [sp]         0x10043f72c <+44>: ldp    x29, x30, [sp, #0x10]         0x10043f730 <+48>: add    sp, sp, #0x20             ; =0x20          0x10043f734 <+52>: ret         ->  0x10043f738 <+56>: brk    #0x1 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -