Giter Site home page Giter Site logo

magicopener's Introduction

JingRound

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

###使用说明: 可以在Storybord、Xib直接拖个View然后更改其类为JingRoundView,设置基本属性即可:

//设置代理,获取回调事件
self.roundView.delegate = self;
//设置中间的图像
self.roundView.roundImage = [UIImage imageNamed:@"girl"]; 
//设置转圈的速度
self.roundView.rotationDuration = 8.0;
//起始状态,转or不转
self.roundView.isPlay = NO;

当点击中间圆盘的时候会触发暂停、播放事件,当然有一个协议:JingRoundViewDelegate

-(void)playStatuUpdate:(BOOL)playState
{
    NSLog(@"%@...", playState ? @"播放": @"暂停了");
}

使用的时候需要引入一下这两个库:

#import <QuartzCore/QuartzCore.h>
#import <CoreGraphics/CoreGraphics.h>

###有问题反馈:

*作者博客发布页面:http://www.isaced.com/post-210.html *

magicopener's People

Contributors

cookingios avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.