alattis / alradial Goto Github PK
View Code? Open in Web Editor NEWa clone of the path radial button menu control
a clone of the path radial button menu control
Hey I wonder if I can set some custom UIViews as ALRadialMenu
's items.
I found the property items
in ALRadialMenu
is just for 'get', so is there any way to do?
Im pretty sure it has do do with something here but I can't fix it.
[self.socialMenu buttonsWillAnimateFromButton:sender withFrame:self.socialButton.frame inView:self.navigationController.view];
First off, I LOVE your menu! It is so phenomenally well written and so easy to plug and play! By far best radial menu out there in my opinion.
Second, I was curious if there is a way you can reload the view, like if I have a outer button that changes its image every time it gets tapped.
The button should first disappear then the action should proceed.
- (IBAction)buttonPressed:(id)sender {
[self.socialMenu buttonsWillAnimateFromButton:sender withFrame:self.socialButton.frame inView:self.navigationController.view];
}
I set this to "self.navigationController.view" because it is in a table view and i need it to overlay it, not slide with it. The only thing is then this happens :
See at the top, that is what is happening... Heres the rest of my code for ALRadcial..
- (UIImage *) radialMenu:(ALRadialMenu *)radialMenu imageForIndex:(NSInteger) index {
if (radialMenu == self.socialMenu) {
if (index == 1) {
return [UIImage imageNamed:@"Home"];
} else if (index == 2) {
return [UIImage imageNamed:@"Information"];
} else if (index == 3) {
return [UIImage imageNamed:@"Tutorial"];
} else if (index == 4) {
return [UIImage imageNamed:@"Feedback"];
}
}
return nil;
}
- (void) radialMenu:(ALRadialMenu *)radialMenu didSelectItemAtIndex:(NSInteger)index {
if (radialMenu == self.socialMenu) {
[self.socialMenu itemsWillDisapearIntoButton:self.socialButton];
if (index == 1) {
NSLog(@"Home");
} else if (index == 2) {
UIViewController *second = [self.storyboard instantiateViewControllerWithIdentifier:@"Information"];
[self.navigationController presentViewController:second animated:NO completion:nil];
NSLog(@"Information");
} else if (index == 3) {
UIViewController *second = [self.storyboard instantiateViewControllerWithIdentifier:@"Tutorial"];
[self.navigationController presentViewController:second animated:NO completion:nil]; NSLog(@"Tutorial");
} else if (index == 4) {
UIViewController *second = [self.storyboard instantiateViewControllerWithIdentifier:@"Feedback"];
[self.navigationController presentViewController:second animated:NO completion:nil]; NSLog(@"Feedback");
}
}
}
#pragma mark - radial menu delegate methods
- (NSInteger) numberOfItemsInRadialMenu:(ALRadialMenu *)radialMenu {
//FIXME: dipshit, change one of these variable names
if (radialMenu == self.socialMenu) {
return 4;
}
return 0;
}
- (NSInteger) arcSizeForRadialMenu:(ALRadialMenu *)radialMenu {
if (radialMenu == self.socialMenu) {
return 90;
}
return 0;
}
- (NSInteger) arcRadiusForRadialMenu:(ALRadialMenu *)radialMenu {
if (radialMenu == self.socialMenu) {
return 80;
}
return 0;
}
- (void)viewDidLoad {
[super viewDidLoad];
self.socialMenu = [[ALRadialMenu alloc] init];
self.socialMenu.delegate = self;
}
I find that you must press the button so precise and sometimes almost impossible to click. Any way to make they touching area a little bit bigger without making the images bigger?
Hi alattis:
It would be a great idea to support cocoapods, it's better to manage the dependencies.
Thanks!
Please, update your library in cocoapods to version 1.0.0
Double tapping the center icon or triple tapping while its still animating seems to throw it off
Can you release a new cocoa pod with the recent changes?
Respected Sir,
when i am tap 2 button like Facebook & Twitter simultaneously then buttons are hide but when i am once again tap on " + " Button it is not open Facebook, Twitter etc. Just " + " button is animate. So how can i solve this issue? Do needful.
Thanking You.
Hi,
Thanks for great control, but I need to implement Pan Gesture into ALRadial . I can move it but when it move to another position then all satellite buttons not showing.
Could you show me how?
Thanks in advance.
Hey!
Thank you for the great component!
Please find time to answer...
I have UITableView on my view controller.
I put ALRadial menu over the UITableView.
When UITableView is static (non scrolling state) - menu works great.
But when I start to scroll table and press menu during scroll - there is animation delay occurred - only after scroll did stop - menu shows it popup "children" buttons.
I assumed that this is because of timer, so how can I fix it?
I want to show expandable buttons every time - during table view scroll action too.
Please help ;)
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.