Passing Managed Object Data Through didSelectRow UIPickerView -
i'm bit lost on how pass fetched managed object data through didselectrow uipickerview action.
on previous view, passed calcinfo object this:
calcinfo *calc = (calcinfo *)[_calcinfos objectatindex:indexpath.row]; self.mypageoneviewcontroller.calcinfos = calc;
i able use calcinfos.attribute ibaction:(id)sender buttons, pickerview isn't able fetch / use data. updatelabel action has calcinfos.attribute null. here's bit of code
- (void)pickerview:(uipickerview *)pickerview didselectrow:(nsinteger)row incomponent:(nsinteger)component { [self updatelabel];
}
- (void)updatelabel { double stdrate = [calcinfos.infusionstd doublevalue]; double lowrate = [calcinfos.infusionlow doublevalue]; if (calcinfos.infusionlow == null) { nslog(@"it's null"); }
}
your appreciated!
the picker view subview own hardwired controller. returns row , column/component picked in delegate message `didselectrow:incomponent'.
you need pass info along updatelabel
method can relate pickerview selection managed objects. right now, method nothing @ all.
Comments
Post a Comment