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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -