If the buttons are in IB, tag is one of the fields in the inspector. Select a button and hit cmd-1. If not, setTag:
Your action should look something like this:
Code:
- (IBAction)buttonPressed:(id)sender;
To retrieve the tag:
Code:
int theTag = [sender tag];
Make a property in your scroll view controller, possibly called currentIndex.
Code:
ScrollViewController *svc = ....
[svc setCurrentIndex: [sender tag]];
In your scroll view controller:
Code:
[... setContentOffset:...(([self currentIndex] - 1) * 480, 0)];