https://github.com/isaced/jinground
A music playback view similar to jing.fm, supporting rotation and customizable parameters. 仿jing.fm的音乐播放视图,支持旋转和自定义参数。
https://github.com/isaced/jinground
Last synced: 10 months ago
JSON representation
A music playback view similar to jing.fm, supporting rotation and customizable parameters. 仿jing.fm的音乐播放视图,支持旋转和自定义参数。
- Host: GitHub
- URL: https://github.com/isaced/jinground
- Owner: isaced
- Created: 2013-06-06T16:16:06.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-22T05:24:38.000Z (over 9 years ago)
- Last Synced: 2025-10-06T03:06:51.261Z (10 months ago)
- Language: Objective-C
- Homepage:
- Size: 1.35 MB
- Stars: 104
- Watchers: 9
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JingRound
=========
赶时髦用Swift也写了一遍:[JingRound-Swift-Branch](https://github.com/isaced/JingRound/tree/swift)
rewritten from Objective-C to Swift...
仿jing.fm的音乐播放视图,支持旋转和自定义参数。
Imitation jing.fm music playing view, support rotation and custom parameters.

### 使用说明 (Usage):
可以在Storybord、Xib直接拖个View然后更改其类为`JingRoundView`,设置基本属性即可:
You can Drag and Drop a UIView in Storybord or Xib,and then change its class `JingRoundView`, set the basic parameter:
```
//设置代理,获取回调事件
self.roundView.delegate = self;
//设置中间的图像
self.roundView.roundImage = [UIImage imageNamed:@"girl"];
//设置转圈的速度
self.roundView.rotationSpeed = 3.0;
```
暂停与继续 (resume and pause):
```
[self.roundView resume];
[self.roundView pause];
```
当点击中间圆盘的时候会触发暂停、播放事件,当然有一个协议:`JingRoundViewDelegate`:
When you touch in the middle of the disc when it will trigger the pause, play events, of course, there is a delegate `JingRoundViewDelegate`:
```
-(void)playStatuUpdate:(BOOL)playState
{
NSLog(@"%@...", playState ? @"播放": @"暂停了");
}
```
使用的时候需要引入一下这两个库:
Of course, you need to import two framework:
```
#import
#import
```
### 欢迎反馈 (Welcomes feedback):
作者博客发布页面(Author):[http://www.isaced.com/post-210.html](http://www.isaced.com/post-210.html)