Suppose to come up a jackpot slot machine application. how do I make it spin longer and make the slot stop spinning one column after another? which means is like column 1 stops spinning, followed by the next column and so on...
-(IBAction)spin { BOOL win = NO; int numInRow = 1; int lastVal = -1; //spinning for(int i = 0; i<3 ;i++) { int newValue = random() % [self.column1 count]; if(newValue == lastVal) numInRow++; else numInRow =1; lastVal = newValue; [pickerView selectRow:newValue inComponent:i animated:YES]; [pickerView reloadComponent:i]; if(numInRow >= 3) win = YES; } if(win) lblM
The above can work...