Code Monkey home page Code Monkey logo

tumblrmenu's Introduction

CHTumblrMenuView

Tumblr iOS app like menu view.

Completely created using core animation.

Easy to drop into your project.

You can add as many items as you want, the CHTumblrMenuView will layout them automatically.

Requirements

CHTumblrMenuView requires Xcode 5, targeting either iOS 5.0 and above, ARC-enabled.

How to use

Drag CHTumblrMenuView.h amd CHTumblrMenuView.m files to your project.

No other frameworks required.

#import "CHTumblrMenuView.h"

CHTumblrMenuView *menuView = [[CHTumblrMenuView alloc] init];

[menuView addMenuItemWithTitle:@"Text" andIcon:[UIImage imageNamed:@"post_type_bubble_text.png"] andSelectedBlock:^{
    NSLog(@"Text selected");
}];
[menuView addMenuItemWithTitle:@"Photo" andIcon:[UIImage imageNamed:@"post_type_bubble_photo.png"] andSelectedBlock:^{
    NSLog(@"Photo selected");
}];

[menuView addMenuItemWithTitle:@"Quote" andIcon:[UIImage imageNamed:@"post_type_bubble_quote.png"] andSelectedBlock:^{
    NSLog(@"Quote selected");

}];
[menuView addMenuItemWithTitle:@"Link" andIcon:[UIImage imageNamed:@"post_type_bubble_link.png"] andSelectedBlock:^{
    NSLog(@"Link selected");

}];
[menuView addMenuItemWithTitle:@"Chat" andIcon:[UIImage imageNamed:@"post_type_bubble_chat.png"] andSelectedBlock:^{
    NSLog(@"Chat selected");

}];
[menuView addMenuItemWithTitle:@"Video" andIcon:[UIImage imageNamed:@"post_type_bubble_video.png"] andSelectedBlock:^{
    NSLog(@"Video selected");

}];

[menuView show];

How it looks

![CHTumblrMenuView] (https://raw.github.com/cyndibaby905/TumblrMenu/master/tumblrMenu.gif)

Lincense

CHTumblrMenuView is available under the MIT license. See the LICENSE file for more info.

tumblrmenu's People

Contributors

cyndibaby905 avatar

Watchers

 avatar  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.