十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
无限互联3G学院.iOS开发视频教程.UI:6.4.UITabBarController基本用法2.mov种子下载地址:
在美兰等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供网站制作、成都网站制作 网站设计制作定制网站,公司网站建设,企业网站建设,成都品牌网站建设,营销型网站,外贸网站建设,美兰网站建设费用合理。
thunder://QUFodHRwOi8vYWlrYW5keS5vcmcv5peg6ZmQ5LqS6IGUM0flrabpmaIuaU9T5byA5Y+R6KeG6aKR5pWZ56iLLlVJ77yaNi40LlVJVGFiQmFyQ29udHJvbGxlcuWfuuacrOeUqOazlTIubW92P2ZpZD15aWQ3UlI3aXREa1I5dGVuVEp1NTNtNHRDTndBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBJm1pZD02NjYmdGhyZXNob2xkPTE1MCZ0aWQ9RTUxREQ3QkMwMUE5MjgyQkE3N0VDMUMzQkVCM0NCRjcmc3JjaWQ9MTIwJnZlcm5vPTFaWg==
麻烦选为满意答案,谢谢!
[img]iOS开发视频教程 UI:4.11 UIImageView用法.mov种子下载地址:
thunder://QUFodHRwOi8vYWlrYW5keS5vcmcvaU9T5byA5Y+R6KeG6aKR5pWZ56iLIFVJ77yaNC4xMSBVSUltYWdlVmlld+eUqOazlS5tb3Y/ZmlkPVFFeW14NzBXWG9HU3ZwbGtJa1Q5LUtXelgxOEFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEmbWlkPTY2NiZ0aHJlc2hvbGQ9MTUwJnRpZD1FNTFERDdCQzAxQTkyODJCQTc3RUMxQzNCRUIzQ0JGNyZzcmNpZD0xMjAmdmVybm89MVpa
请采纳
iOS开发视频教程 UI:7.模拟器常用操作种子下载地址:
thunder://QUFodHRwOi8vYWlrYW5keS5vcmcvaU9T5byA5Y+R6KeG6aKR5pWZ56iLIFVJ77yaNy7mqKHmi5/lmajluLjnlKjmk43kvZwubXA0P2ZpZD1xNjdCVmhHRHE0RWY1bXZCLXJrZEFpT1dmQU1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBJm1pZD02NjYmdGhyZXNob2xkPTE1MCZ0aWQ9RTUxREQ3QkMwMUE5MjgyQkE3N0VDMUMzQkVCM0NCRjcmc3JjaWQ9MTIwJnZlcm5vPTFaWg==
记得采纳
iOS开发视频教程 UI:3.3 视图控制器视图的装载.mov种子下载地址:
thunder://QUFodHRwOi8vYWlrYW5keS5vcmcvaU9T5byA5Y+R6KeG6aKR5pWZ56iLIFVJ77yaMy4zIOinhuWbvuaOp+WItuWZqOinhuWbvueahOijhei9vS5tb3Y/ZmlkPWszMWQxa1prcWdxTmJTeFBObC10RjlXVTZXOEFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEmbWlkPTY2NiZ0aHJlc2hvbGQ9MTUwJnRpZD1FNTFERDdCQzAxQTkyODJCQTc3RUMxQzNCRUIzQ0JGNyZzcmNpZD0xMjAmdmVybm89MVpa
核实后记得采纳!!
无限互联iOS开发视频教程 UI:2.4 UIView的基本属性和自定义.mov种子下载地址:
thunder://QUFodHRwOi8vYWlrYW5keS5vcmcv5peg6ZmQ5LqS6IGUaU9T5byA5Y+R6KeG6aKR5pWZ56iLIFVJ77yaMi40IFVJVmlld+eahOWfuuacrOWxnuaAp+WSjOiHquWumuS5iS5tb3Y/ZmlkPXF4eFIyMnFScVNqd2ZEZkZyNXN4bUNwa2I4a0FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEmbWlkPTY2NiZ0aHJlc2hvbGQ9MTUwJnRpZD1FNTFERDdCQzAxQTkyODJCQTc3RUMxQzNCRUIzQ0JGNyZzcmNpZD0xMjAmdmVybm89MVpa
记得采纳
这有一个例子:
iPhone – Add an UISlider For AVAudioPlayer
We can use AVAudioPlayer to play music. Now i want to add an UISlider as the music progress bar and user can fast skip the music.
Now i have a play button in the view and when user click it, i will play the music file as well as the following method.
* playButtonClicked – Run when the play button is clicked
* updateSlider – Run in 1 second interval to update the UISlider
* sliderChange – Fast skip the music when user scroll the UISlider
Here comes the code - (IBAction)playButtonClicked:(id)sender {
// Read the file from resource folder and set it in the avAudioPlayer
NSURL *fileUrl = [[NSURL alloc] initFileURLWithPath:[[NSBundle mainBundle] pathForResource:@"musicFile" ofType:@"caf"]];
avAudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:fileUrl error:nil];
[avAudioPlayer setDelegate:self];
[avAudioPlayer setVolume:1.0];
// Set a timer which keep getting the current music time and update the UISlider in 1 sec interval
sliderTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateSlider) userInfo:nil repeats:YES];
// Set the maximum value of the UISlider
aSlider.maximumValue = avAudioplayer.duration;
// Set the valueChanged target
[aSlider addTarget:self action:@selector(sliderChanged:) forControlEvents:UIControlEventValueChanged];
// Play the audio
[avAudioPlayer prepareToPlay];
[avAudioPlayer play];
}
- (void)updateSlider {
// Update the slider about the music time
aSlider.value = avAudioPlayer.currentTime;
}
- (IBAction)sliderChanged:(UISlider *)sender {
// Fast skip the music when user scroll the UISlider
[avAudioPlayer stop];
[avAudioPlayer setCurrentTime:aSlider.value];
[avAudioPlayer prepareToPlay];
[avAudioPlayer play];
}
// Stop the timer when the music is finished (Need to implement the AVAudioPlayerDelegate in the Controller header)
- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag {
// Music completed
if (flag) {
[sliderTimer invalidate];
}
}
复制代码