yalantis / context-menu.ios Goto Github PK
View Code? Open in Web Editor NEWYou can easily add awesome animated context menu to your app.
Home Page: https://yalantis.com/?utm_source=github
License: Apache License 2.0
You can easily add awesome animated context menu to your app.
Home Page: https://yalantis.com/?utm_source=github
License: Apache License 2.0
I am trying to change background color of selected cell's menuImageView. I have closed all reload tableviews but it clears the color anyway
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.
Got this problem when implementing contect-menu into my exsiting tableviewcontroller:
The menu won't show at all
However it works fine on normal UIViewController, any idea how to fix this?
Thanks for your time and awsome project!
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.
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
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]'
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?
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
I have integrated this menu in my App. Its working fine in all iPhone but while using in iPad,If you tap on menu then Background of this menu not set fit to screen.
I'm trying to make the context menu coming from left instead of coming from right.
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.
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.
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!
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
Please update this one to swift. I really want it but it's in objective-c :(
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.
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
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.
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???
I want to use Sourcegraph for Context-Menu.iOS code search, browsing, and usage examples. Can an admin enable Sourcegraph for this repository? Just go to https://sourcegraph.com/github.com/Yalantis/Context-Menu.iOS. (It should only take 30 seconds.)
Thank you!
by the way i love Yalantis’s code. god bless Ukraine ,defeat the devil of Russia and his bastard son Chinese Communist Party.
could you plz make it pod
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.