views:

10

answers:

0

Hi,

I try to use a picker view for simulating some device in a gaming room, by rolling during some time and dusplaying an alertview.

Unfortunately, the code doesn't work because when the animated parameter is set to YES, the next instruction forbids the picker to roll softly until the wanted value.

Here's a bit of the code:

[picker selectRow:row inComponent:0 animated:NO];
int *row = [picker selectedRowInComponent:(NSInteger)0];

Can you help me ? I tried to use the NSThread sleep method, but it freezing the UI, so it's still unperfect.