简体   繁体   中英

iPhone UIPickerView not animating on device

I've got a very simple screen with a 2 component UIPickerView used to perform a conversion. All I'm doing is when one reel is changed I automatically move the other to an appropriate position, using animation.

So, I've got this:

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
    // adjust the other component accordingly
    [pickerView selectRow:row 
              inComponent:(component == kPickerComponent1) ? kPickerComponent2 : kPickerComponent1
                 animated:YES];
}

This works perfectly in the simulator, with a smooth animation as expected, however on the device it still works but without the animation.

Any ideas?

Thanks

i think u have to get build from below minimum level of sdk.

change base sdk to 3.1

select in xcode select app below the target folder

then double click it

in build tab type "deploy"

ios deployment target to ios 3.1 or ur exact device version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM