Giter Site home page Giter Site logo

yalantis / context-menu.ios Goto Github PK

View Code? Open in Web Editor NEW
1.8K 85.0 247.0 2.47 MB

You can easily add awesome animated context menu to your app.

Home Page: https://yalantis.com/?utm_source=github

License: Apache License 2.0

Ruby 2.38% Objective-C 97.62%
ios objective-c menu yalantis customization rotation-animation uiview-property animation contextmenu context-menu

context-menu.ios's People

Contributors

edbaev avatar egorsobko avatar jindulys avatar kolorobos avatar lintx avatar makstheawesome avatar maximletushov avatar mrcompoteee avatar serejahh avatar vodolazkyi 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  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

context-menu.ios's Issues

Cocoapods no longer working

This worked perfectly via cocoapods until today.

Now it says:

Analyzing dependencies
[!] Unable to satisfy the following requirements:

  • ContextMenu.iOS (~> 1.0.0) required by Podfile

pod

could you plz make it pod

Manual Installation

CocoaPods and Carthage are awesome tools and make our life really easier, but there are some devs who still don't know how to use them.

It would be cool to add the Manual installation guide in your README.md. You can take a look at my iOS Readme Template to see how you can do it.

not showing menu and + button in ios 11.2

not showing menu and + button in ios 11.2, work fine less than 11 version. How can i Fix this please help me. if Tapped 2nd timeon + Button it works,Not work in single Touch + Button. only + Button show when I rotate device then show.Thanks
img_0046

Cocoapods no longer working

cocoapods 0.39.0

[!] Unable to satisfy the following requirements:

  • ContextMenu.iOS (~> 1.1.0) required by Podfile

Specs satisfying the ContextMenu.iOS (~> 1.1.0) dependency were found, but they required a higher minimum deployment target.

Menu does not open properly after second time

Everything was working fine until I updated the version of iOS, now the menu opens incorrectly from the second time.

1 click:
52b5c87d-8384-4f20-98db-88b6f54bf689

2 click:
0463c8ec-3f3d-462a-a7b3-f5c4c23f362d

3 click:
6a85e95a-a4a3-40ad-821e-714ff71321b5

If someone can help me fix this problem

App crash when there's another tableview in controller

i had to use context menu on multiple screens so i made

@interface UIBaseControllerForMenu : UIViewController <UITableViewDelegate,UITableViewDataSource,YALContextMenuTableViewDelegate>

and added all menu code in this controller's m file.didn't make xib file for this controller file.

and where i needed to use it, i used
@interface UIMyAppointmentViewController : UIBaseControllerForMenu

and call the action button of UIBaseControllerForMenu from child controllers to show/init menu.it works fine in controllers without tableview of there own but crashes the app when there's a other tableview in them.issue is you are getting cell from visible cells function of tableview which returns the controller's own cell not the one belonging to menu. and try to call functions defined in YALContextMenuCell protocol and app crashes as other cells are not implementing this function.

any solution to this???

crash when i display the menu

when i press the button to show menu and scrolling the table until the animating cells disappear from screen

the error in YALContextMenuTableView.m line 164

* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayI objectAtIndex:]: index 9 beyond bounds [0 .. 7]'

Does not work on iPad

Menu cover the entire width and half the screen with white color and other half with semi transparent black color. Anyone have an idea how to solve this?

Swift problem

Hi guys,

I'm trying to integrate context-menu-ios to my Swift-project. Basically I used Cocoapods to integrate the framework. I have the same codebasis like the context-menu.ios example, but I get an error:

"ViewController.swift:113:10: Objective-C method 'tableView:didSelectRowAtIndexPath:' provided by method 'tableView(:didSelectRowAtIndexPath:)' conflicts with optional requirement method 'tableView(:didSelectRowAtIndexPath:)' in protocol 'UITableViewDelegate'"

My code looks like this:

func tableView(tableView: YALContextMenuTableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
tableView.dismisWithIndexPath(indexPath)
}

The same code in objective-c does not handle an error.
Does anybody have a solution for this issue?

thx

Swift Update

Please update this one to swift. I really want it but it's in objective-c :(

Best way is to add the view in the UIWindow

When i user it, i found your demo is to hide the statusBar at the very beginning, i think it is not good. My solution is to add the view in the main window, and make the windowLevel high than the statusbar window level: kWindow.windowLevel = UIWindowLevelStatusBar + 1; contextMenuTableView.showInView(kWindow, withEdgeInsets: UIEdgeInsetsZero, animated: true). When hide the view: kWindow.windowLevel = originalWindowLevel

Usage with swift

How can I use it with swift? I have the bridging header and pod installed but don't know how to use it now with swift, please help!

Selected Cell Backround

I am trying to change background color of selected cell's menuImageView. I have closed all reload tableviews but it clears the color anyway

How to use this library in swift?

Hi all,

I am new for developing the ios application. I have started to use this library. But I have used swift 2.0. In documentation don't have more details using of swift. can any one explain with examples.

How to Disable Delete Option in ContextMenu

Another Issue I am facing is that I got two tableview in single screen,One is Context Menu and Other is of my Application, Now I am using "commitEditingStyle" to delete Table cell item by Swipe in my Application table but This Feature will obviously look odd when any user do swipe in ContextMenu so how to disable it for our ContextMenu Table.
ios simulator screen shot apr 19 2015 10 14 03 pm

App crash when there's another tableview in controller

i had to use context menu on multiple screens so i made

@interface navigationMenu : UIViewController <UITableViewDelegate,UITableViewDataSource,YALContextMenuTableViewDelegate>

and added all menu code in this controller's m file.didn't make xib file for this controller file.

and where i needed to use it, i used
@interface UIMyAppointmentViewController : navigationMenu

and call the action button of navigationMenu from child controllers to show/init menu.it works fine in controllers without tableview of there own but crashes the app when there's a other tableview in them.issue is you are getting cell from visible cells function of tableview which returns the controller's own cell not the one belonging to menu. and try to call functions defined in YALContextMenuCell protocol and app crashes as other cells are not implementing this function.

any solution to this???

i have applied many solutions but current view controller data source and delegate reference not remove when load context menu again and tableview datasouce as well delegate method call of child view controller not parent view controller.

please help me it's urgent.

Thanks in advance.

Dismiss Menu on outside click

Is there any method to dismiss menu on outside click,I found whole cell clickable therefore on click empty space it handle menu action.

Anyway,thanks for great menu.

Cannot find an initializer for type in Swift

Hi Im using Context-Menu.iOS in my swift proyect but i get an error when i try to initialize it:

let contextMenuTableView = YALContextMenuTableView(tableViewDelegateDataSource: self)

and the error message:

Cannot find an initializer for type 'YALContextMenuTableView' that accepts an argument list of type '(tableViewDelegateDataSource: ImageEditing -> () -> ImageEditing)'

Thanks

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.