EDIT :
I\'m making an app like a Slot Machine, i added iCarousel for the slot object.
So I have a button that rotates the iCarou
Why wouldnt you do your tableview idea, take the below routine call:
[carousel scrollByNumberOfItems:-35 duration:10.7550f];
and put that into another non-action routine, and have the TableView didSelectItemAtIndex method call your new routine, and have your action routine call it.
-(void)newRoutineToCall:(int)itemsToMove{
[carousel scrollByNumberOfItems:itemsToMove duration:10.7550f];
}
-(IBAction) spin {
[self newRoutineToCall:-35];
}
Then Implement
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[self newRoutineToCall:[indexPath row]];
}