Code Monkey home page Code Monkey logo

vscirculardial's Introduction

VSCircularDial

VSCircularDial is an UIView enhancement which provides you a 360 degree rotating scroller.

VSCircularDial

Features

  1. Easy to use, just like normal UIView.
  2. Fully customizable
  3. Optimized for different resolutions, including iPhone, iPad and iPhone 4 (Retina Display)
  4. Callbacks can be implemented to call specific methods on rotating the view.

Usage

Very similar to UIView. For VSRotatingView, you can initialize with "new" method:

VSRotatingView *rv = [VSRotatingView new];
[view addSubview:rv];

Initial Steps:

  1. Download and add the complete "VSRotatingView" folder in your project from here.
  2. You need to add three frameworks in your project - QuartzCore, AVFoundation and Security.
  3. Add #import "VSRotatingView.h" to the top of view controller in which you are going to use the above code and you are ready to go.
  4. Function "- (void)viewCirculatedToSegmentIndex:(NSUInteger)index;" can be called in its delegate which can be used to know when view is beeing rotated and which segment is the current selected one.

Customizing this view is a lot simple. Variables could be modified in VSConstants.h to get desired functionality and the main image of dial can be replaced easily with image named "pain-cycle.png". Complete code can be accessed in VSRotatingView.h/.m files and full modification is possible.

Included Demo project#2 displays how you can customize this view and show a 360 degree view like the one below:

VSCircularDial

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.