Giter VIP home page Giter VIP logo

cnpgridmenu's Introduction

CNPGridMenu

THIS PROJECT IS DEPRECATED I no longer have the time to maintain this project, sorry. I am no longer making any changes to this codebase. Please feel free to fork it, change whatever you want, and publish it anywhere you like. I'll leave this repo open until September 1, 2019 so that you can get what you need.

CNPGridMenu is a Mailbox style grid menu with a blurred background for iOS 7 & iOS 8.

Usage

You can create items for the grid menu using CNPGridMenuItem.

@property (nonatomic, strong) NSString *title;

@property (nonatomic, strong) UIImage *icon;

@property (nonatomic, assign) NSInteger menuItemTag;

@property (nonatomic, assign) BOOL disabled;

@property (nonatomic, copy) SelectionHandler selectionHandler;

Customization

You can choose the blur style. UIBlurEffectStyleDark UIBlurEffectStyleLight UIBlurEffectStyleExtraLight

@property (nonatomic, assign) UIBlurEffectStyle blurEffectStyle;

Installation

Requires iOS 7 or iOS 8

pod "CNPGridMenu"

Or if you don't want to use CocoaPods #import "CNPGridMenu.h"

cnpgridmenu's People

Contributors

bryant1410 avatar hbridge avatar mlvea avatar readmecritic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cnpgridmenu's Issues

White blank screen in iOS 7.1 device 4s but works fine in simulatore

First of all thanks for very useful component.

I am facing this strange issue , everything works fine in simulator but in device (iPhone 4s iOS 7.1) a white blank irresponsive screen appears with warning "<CNPGridMenu: 0x146ee2c0> UIModalPresentationCustom presentation style can only be used with an animator or with unanimated presentations."
Works fine iOS 8+ with iphone 5,6,6 +
Immediate help will be much appreciated.

Thanks

Opacity?

The background blur completely obscures the background. I want to show the underlying user interface view a bit more. I tried modifying the opacity but it's overridden or ignored by the code. Please either suggest a way to change the alpha/opacity or add a method to do so.

iOS platform is set to 8.0 on podspec

The iOS platform is set to 8.0 avoiding to be installed for iOS 7 platform. Even though the repo was updated for iOS 7 support, the podspec's platform wasn't updated

Great job

First of all thank you for you job! Great one!

I have a small question - is there any way to center the buttons...? What I mean is - for example if i will add just one button it will be attached to the right side of the screen...is there any way to make it in the center?

Change Image

Hi, I´m trying to change the image of one element, but i get a blank image maybe you can help me.

maybe it is related to the width and height of the image. is there a specific width or height?
the code i´m using is this

laterToday.icon = [UIImage imageNamed:@"my-image.png"];

ios simulator screen shot oct 30 2014 10 20 07 pm

thank you very much

using selectionHandler and font color

How do I use the selectionHandler for button press? Also I removed the image parameter from circleButton of CNPGridMenu and instead added a titleLabel but even though I set the font color it does not changes and has transparent fonts which assumes the color of background. Can you please help how do I set my font color for titleLabel of button.
[cell.circleButton.titleLabel setFont:[UIFont systemFontOfSize:30]];
[cell.circleButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];

Present Grid Menu in UICollectionViewCell

I, i want know if there is a way to display the Grid Menu in a UICollectionViewCell, in my UICollectionViewCell subclass i do this:

[self presentGridMenu:gridMenu animated:YES completion:^{
    NSLog(@"Grid Menu Presented");
}];

but give me an error because doesn't find the selector

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.