Coder Social home page Coder Social logo

ct_popoutmenu_demo's Introduction

<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>

CT_PopOutMenu_Demo

This control is like an UIAlertView with button icon and four basic layout. I also added an UIActivityIndicatorView in this control, you can just "startAnimation" to get it work on the pop out menu. alt tag

#How to use Drag the CTPopOutMenu.h, CTPopOutMenu.m file into your project and import the .h file. Once you drag these file into your project and import .h file you have finished 50% progresses in useing the control. To get the menu pop out on the screen, you need three more steps like these code.

NSArray * items = ....
popMenu = [[CTPopoutMenu alloc]initWithTitle:@"Title" message:@"message" items:items];
popMenu.menuStyle = MenuStyleDefault , MenuStyleGrid , MenuStyleList or MenuStyleOval;//choose one from these
[popMenu showMenuInParentViewController:parentVC withCenter:center];

In the last, you can setup the delegate if you need. It can tell you which item has been selected.

popMenu.delegate = where_you_contol_the_menu;//"self" in most situation 
-(void)menu:(CTPopoutMenu*)menu willDismissWithSelectedItemAtIndex:(NSUInteger)index;
-(void)menuwillDismiss:(CTPopoutMenu *)menu ;

#Credit This control was inspired by RNGridMenu. I learned how to blur background by taking screenshot and blur the image.

#License see LICENSE

#Contact me I started to learn obj-C on Sept.2014. If you have any suggestion about improving my coding skill, please contact me. e-mail:[email protected]

ct_popoutmenu_demo's People

Contributors

ckpiggy avatar

Watchers

 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.