uitableview - UITableViewController UINavigationController -


enter image description here

i declared gamepicerviewcontroller (subclass of uitableviewcontroller) .but got bug in prepareforsegue:sender: method . console says gamepickerviewcontroller uinavigationcontroller. have ideas?

i post gamepickerviewcontroller.h playerdetailsviewcontroller.m , console in pic abve.

problem solved.

- (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender  {      if ([segue.identifier isequaltostring:@"pickgame"]) {          uinavigationcontroller *controller = segue.destinationviewcontroller;          gamepickerviewcontroller *gamepickerviewcontroller = [controller viewcontrollers][0];          gamepickerviewcontroller.delegate = self;          gamepickerviewcontroller.game = _game;      }  }

i forgot line:

        uinavigationcontroller *controller = segue.destinationviewcontroller;


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -