JingRound 使用说明(Usage): 音乐播放视图

程序名称:JingRound 使用说明(Usage):

授权协议: MIT

操作系统: iOS

开发语言: Objective-C

JingRound 使用说明(Usage): 介绍

JingRound 是一款仿 jing.fm 的音乐播放视图,支持旋转和自定义参数

使用说明(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.rotationDuration = 8.0;
//起始状态,转or不转
self.roundView.isPlay = NO;

暂停与播放(pause and play):

[self.roundView play];
[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 <QuartzCore/QuartzCore.h>
#import <CoreGraphics/CoreGraphics.h>

JingRound 使用说明(Usage): 官网

https://github.com/isaced/JingRound

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...