我在滚动视图中有这个按钮,按下它时我需要播放声音。
UIButton *profileButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[profileButton setImage:[UIImage imageNamed:@"test.jpg"] forState:UIControlStateNormal];
[profileButton setImage:[UIImage imageNamed:@"test.jpg"] forState:UIControlStateHighlighted];
profileButton.frame = CGRectMake(0, 620, 320, 250);
[self.scrollView addSubview:profileButton];
我怎么能这样做?谢谢,