Giter VIP home page Giter VIP logo

elpcircleconsoleview's Introduction

ELPCircleConsoleView

iOS操纵控制方向圆盘 在各类游戏中,都可以看到操纵游戏人物运动的圆盘,该程序就是简单实现这个控制功能。

使用方法如下:
1.在项目中添加如下5个文件:
ELPCircleConsoleView.h 和 ELPCircleConsoleView.m
UIView+Sizes.h 和 UIView+Sizes.m
ELPCircleRotateImageAsset

2.引用:"ELPCircleConsoleView.h" 添加:

ELPCircleConsoleView *gradleView = [[ELPCircleConsoleView alloc]init];
gradleView.frame = CGRectMake(100, 200, 250, 250);
gradleView.delegate = self;

   [self.view addSubview:gradleView];

3.实现ELPCircleConsoleMoveDelegate中的rotateCircleView方法,对方向的返回值做相应的业务处理

可以根据自己项目需要,修改ELPCircleRotateImageAsset中的文件,来做相应样式的变化

界面效果如下: Alt text

elpcircleconsoleview's People

Contributors

elsonpeng avatar

Stargazers

Maston avatar  avatar Mike avatar  avatar DeivnWu avatar 汐汐 avatar zhangjian avatar yuankai avatar FirstBlue avatar 龙哥 avatar gq.. avatar

Watchers

James Cloos avatar

elpcircleconsoleview's Issues

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.