objective c - iOS Load Previous Selected Values in Dependent UIPickerview load -
this first post , hoping community can me.
i have view contains dependent uipicker has 2 components. when selected in component 1 of uipicker a1, a2, a3 visible in component 2.
component 1    component 2  a1   component 2  a2   component 2  a3  component 1  b   component 2  b1   component 2  b2   component 2  b3   component 2  b4  component 1  c   component 2  c1   component 2  c2 i retrieve selected rows both of dependent components uipicker , write them plist file. example if select b3 save rowvalue "1" selecting b in first component, save rowvalue "2" selecting b3.
my problem occurring when restart app, load values , try set selected rows second dependent component.
the following code have:
- (void) viewdidappear:(bool)animated {    [self.dependentpicker selectrow:component1value incomponent:0 animated:yes];     [self.dependentpicker selectrow:component2value incomponent:1 animated:yes]; } the code setting row in first component. second component not refresh allow selection of saved row in second component.
does have advice?
thank kindly.
 
 
  
Comments
Post a Comment