romaonthego / remenu Goto Github PK
View Code? Open in Web Editor NEWDropdown menu inspired by Vine.
License: MIT License
Dropdown menu inspired by Vine.
License: MIT License
Hello, the last versione of the REMenu give me a warning in the RECommonFunctions.h on the static BOOL REUKitIsFlatMode() method, how can i fix it? the warning is "Unused function 'ReUIKitIsFlatMode'.
This is not exactly an issue, but I would say an improvement. There should be an icon on the UIBarButton, so it would be like Vine.
Is there a way to force the user to select an item from the list? The intended behaviour being that this would be the only way to close the menu once opened.
Is it possible to close the menu automatically if any place outside of the menu has been touched?
Currently, if the menu is left open and the user navigation to another view, eventually the app will crash. Looks like some memory related issue.
Assertion failed: (slab->magic == SLAB_MAGIC (bucket_idx)), function slab_dealloc, file /SourceCache/QuartzCore_Sim/QuartzCore-330.0.8/util/x-alloc.c, line 567.
Just found out that my customView frame is set unexpectedly to 640px width
item.customView.frame = itemView.bounds;
item.customView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
[itemView addSubview:item.customView];
I removed this line, and works fine:
item.customView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
Hi, I'm trying to set an action for the button with the following title "Explore", I'd like to set an action that when I tap on this button, i will be redirected to the UIView ""TestViewController".
How can I do it?
Thanks
Hello,writer!
The demo is really wonderful! I used it in my project. but I don't know how to change the left and right view's width.please help me.Thank u very much!
Why I can't add more than 4 items ??
I'm trying to combine the REMenu with RETableViewManager, but when I try to touch on the button that navigate to the controller use RETableViewManager, the app crashed, the Reason is: "reason: 'UINavigationControllers are not allowed in a navigation controller"
Is this an issue?
Thanks!
How could I blur the navigation bar when the menu is open ?
Thanks
When you update a REMenuItem layout property, it doesn't update the appearance instantly. It will only get picked up when the menu is redrawn. For example:
REMenuItem *homeItem = [[REMenuItem alloc] initWithTitle:@"Home"
image:nil
highlightedImage:nil
action:^(REMenuItem *item) {
item.backgroundColor = [UIColor blueColor];
}];
Doesn't make your item's backgroundColor blue until you redraw (or reopen) the menu. I will try to fix it and submit a pull request. #53
I want to be able to change the image on selection, toggling between two different images. Not a on highlight image however.
With iOS 7.1 update the live blur mode doesn't work anymore.
make the drop down list scrollable if the options go off screen
It does not work properly with ios7. The menu does not go down entirely
If you press "back" on navigation bar until open animation finished, menu remains open on other view. It's simple to solve: simply comment "if (self.isAnimating) return;". It works good, but update from pods cleans it, and exist variable "BOOL waitUntilAnimationIsComplete;".
To close menu i'm used [menu close]; in viewWillDisappear:, maybe exist better way to do it?
It would be great if you can add function that can splits "row" to 2 items. Any idea?
Is there a way of executing a -(void) method/function without dismissing the menu when you select an item?
Hi,
I´m using this great component in my app, and i´d like to know if it´s there way to add items to it while the app is running. I can remove them, but when i try to add some nothing happens until i reboot the app and building the menu again.
Any ideas??
Thank you in advance.
RT. thanks for your great work.
Hello, i'm trying to implement REMenu in one of my apps, and everything is working fine, but for some reason, the "Menu" button needs to be clicked Twice, so the menu opens.
After the first time you click twice, you just need to click one and everything works fine, any ideas?
It would be great to see 2 new alignment options:
REMenuImageAlignmentCenterLeft
would place the image immediately left of the titleLabel (which has been sized to fit it's width) and apply the imageMargin
to it for spacing, then center the image + text-label group within the menu item.
REMenuImageAlignmentCenterRight
would place the image immediately right of the titleLabel (which has been sized to fit it's width) and apply the imageMargin
to it for spacing, then center the text-label + image group within the menu item.
Thoughts?
i think the root cause is it calls an iOS7 only API.
This project no longer supports iOS 5, since #48 was merged in. boundingRectWithSize:
is not available before iOS 6, so the app will crash on iOS 5 if badges are used.
Is there a way to give each menu item a different background color?
HI RT,
anyway to make the MenuItem to have individual Individual setHighlightedBackgroundColor ?
Hi Romaonthego,
I would like to say, great job on the class, it works well and easy to integrate into my app. I just have a few questions.
I am attempting to use the drop down menu to instead "push down" the bottom half of my main view while keeping the top half of the view still. Heres a pic of what I am trying to do
If you notice the arrow on the top part of the UIView, thats basically where I want the drop down to begin, not from the top of the navigation bar... If I can reposition the drop down to start from the arrow or rather right under the view that labels "Morone Residence" that would be a good start. Then I would want to push down the view under the view that has the label "Morone Residence" and scroll the rest of the view DOWN, so the entire main view is visible at all times.
Hopefully I am making sense :P. If not please reply back. I haven't made any modifications to your code other than changing the weak reference - i just commented it out because it was giving me errors... not really sure as I haven't went into deep investigations :P.
//__typeof (&*self) __weak weakSelf = self;
REMenuItem *activityItem = [[REMenuItem alloc] initWithTitle:@"Activity"
subtitle:@"Perform 3 additional activities"
image:[UIImage imageNamed:@"Icon_Activity"]
highlightedImage:nil
action:^(REMenuItem *item) {
NSLog(@"Item: %@", item);
MainViewController *controller = [[MainViewController alloc] init];
[self.navigationController setViewControllers:@[controller] animated:NO];
}];
Hopefully this is possible... but i'm sure it is with some tweeking :)
Like the menu would pop down and be a 3x3 grid with menu choices instead of vertically stacking the choices
Any suggestion how to do this?
Also the grid could dynamically change the number of items in a row on orientation change
I can use it on UITableViewController. Ok. Bu i cant make it work on TabBarController.
EDIT:
It works if you use
self.menu = [[REMenu alloc] initWithItems:itens];
I was using
self.menu = [[REMenu alloc] init];
self.menu.itens = itens;
Like the number badge on activity menu in vine? :D
This issue does not occur in older versions of REMenu.
After first toggle:
http://cl.ly/image/2R2Y3z1d2G0o
After second toggle:
http://cl.ly/image/2T443I3P3V3z
Any ideas?
Add ability to scroll when there are too many items for view
Is there any possibility of creating a demo using storyboard?
That would help a lot ;)
Is there any way to toggle or hide the menu? For example if it's already visible, then hide it: [self.menu toggleFrom...]
or something like [self.menu hide]
or even [self.menu.menuView removeFromSuperview]
?
Thanks!
Cocoapods fails because the tag for 1.8.5 is missing
" Couldn't find remote ref tags/1.8.5"
I've been having trouble getting custom fonts (added to project's plist) to work with the initializers for REMenuItems. I thought it may have been a Cocoapods issue, but did the manual install and am having the same issue. I was only to get the custom fonts to display by using initWithCustomView:
.
Am I just missing something or is this a bug?
Would be a nice addition, any ideas how to go about doing this?
I was using your library, and I noticed the last View my image was shifted a little bit to right. After running a few tests I concluded that cornerRadius shift the image.
I guess it's because it adds 4 pixels (in my case, was _menu.cornerRadius = 4
) at right and bottom (I guess at the left too)
Well here are some pictures without cornerRadius:
And here with cornerRadius (You can notice the bottom has 4 more pixels than the other views)
If you have any questions about my project, or the images, feel free to ask.
Thank you!
It would be great to be able to easily flip the layout of the menu tabs, so the image appeared on the right side of the text. This would be useful for using the menu triggered from a button on the right side of the navigation bar.
Today, I git clone REMenu project, but when I run the sample project, I meet an error, the error message as follow. By the way, when I checkout the latest tag 1.4.2. The example project run ok.
/REMenu/REMenuExample/REMenuExample/Classes/Controllers/NavigationViewController.m:29:28: Property 'barTintColor' not found on object of type 'UINavigationBar *'; did you mean 'tintColor'?
Everything seems to up and running without issue, except for some reason the instance of REMenu doesn't seem to respond to the setSeperatorHeight and setSeperatorColor properties.
Any advice?
Currently, with the menu displayed, I can tap items on the UINavigationBar. Tapping the back button allows the view controller to be dismissed, yet the menu continues to stay displayed and eventually causes crash due to the parent view becoming nil even if I close the menu in viewWillDisappear.
I don't know wether I am doing something wrong, but if I have a bigger list of items in the menu - I cannot scroll to see all items. Shouldn't it be scrollable ?
When using showFromRect, if the menu is initially shown in landscape then the device gets rotated to portrait the menu width shrinks and the text is truncated.
Is there any way to add scrolling posibility to the menu ? My menu has a lot of items and I need it to scroll up and down.
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.