uitableview - UITableViewController UINavigationController -
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
Post a Comment