kjuly / kycirclemenu Goto Github PK
View Code? Open in Web Editor NEWAn iOS UI control that allows you to build a circular menu by laying out buttons in a circle pattern adjusting from the number of buttons (1~6).
License: MIT License
An iOS UI control that allows you to build a circular menu by laying out buttons in a circle pattern adjusting from the number of buttons (1~6).
License: MIT License
hi @Kjuly !
I'm trying to using your library for a personal application in Swift and i would like to know, how can i use KYCircleMenu with Storyboard for more customization.
I'm trying to work only with the subview of KYCircleMenu but it does not work .... .
Any idea ?
Hi,
As your demo you add CircleMenuViewController into AppDelegate. But in my case, I need to add CircleMenuViewController into my ViewController
Here us my code
@implementation SubmitListViewController
- (void)viewDidLoad
{
//SubmitAdsViewController.delegate = self;
// Circle Menu
CircleMenuViewController * circleMenuViewController=
[[CircleMenuViewController alloc]initWithButtonCount:kKYCCircleMenuButtonsCount
menuSize:kKYCircleMenuSize
buttonSize:kKYCircleMenuButtonSize
buttonImageNameFormat:kKYICircleMenuButtonImageNameFormat
centerButtonSize:kKYCircleMenuCenterButtonSize
centerButtonImageName:kKYICircleMenuCenterButton
centerButtonBackgroundImageName:kKYICircleMenuCenterButtonBackground];
[self.view addSubview:circleMenuViewController.view];
}
When I compile I got this error:
Undefined symbols for architecture i386:
"OBJC_CLASS$_CircleMenuViewController", referenced from:
objc-class-ref in SubmitListViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried to use KYCircleMenu.h directly instead of CircleMenuViewController , that works, but when I tap on the center button it crash as well.
Do you have any introduction for my case. Thanks in advance.
i can choose more than 1 option at a time ,which must not be there.(monkey testing)
Kindly give me a solution (only last selection ,or single selection)
2 ~ 4 tabs are supported now, what about 5 or even more?
I click on one of the sub-button can not be pushed to the following two views Why?
Any chance to rewrite this to Swift?
Hi Kaijie Yu, I copied the files of demo to new single view project, in iOS 6.1, I debugged the ARC errors, like memory release, but xcode showed me that warning error of the Designated Initializer in AppDelegate, I run the app and the simulator show me a black screen.
!Warning :Error: Unused Entity Issue Expression result unused
[circleMenuViewController initWithButtonCount:kKYCCircleMenuButtonsCount
menuSize:kKYCircleMenuSize
buttonSize:kKYCircleMenuButtonSize
buttonImageNameFormat:kKYICircleMenuButtonImageNameFormat
centerButtonSize:kKYCircleMenuCenterButtonSize
centerButtonImageName:kKYICircleMenuCenterButton
centerButtonBackgroundImageName:kKYICircleMenuCenterButtonBackground];
Hi every one,
please tell me how to implement this control for 7 to 8 items so that i can use it into my app
Thanks in advance.
Is there a way to recenter on rotate, and center using this control on an ipad. can't seem to find a way to relayout on rotate
Hi, how can I push a ViewController with a nib file and set its tag?
can you write down the code?
Thanks
I downloaded de CirculesMenu and I successfully implement in my app but I am stock in how to show the other ViewControllers in my apps. I can call the other VC with these code
- (void)runButtonActions:(id)sender {
[super runButtonActions:sender];
if ([sender tag] == 1)
{
// Configure new view & push it with custom |pushViewController:| method
MusicViewController *MviewController = [[MusicViewController alloc] init];
//UIViewController * viewController = [[UIViewController alloc] init];
//[viewController.view setBackgroundColor:[UIColor blackColor]];
[MviewController setTitle:[NSString stringWithFormat:@"Música"]];
// Use KYCircleMenu's |-pushViewController:| to push vc
[self pushViewController:MviewController];
}
My viewDidLoad code
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
// Setting Up Activity Indicator View
self.activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
self.activityIndicatorView.hidesWhenStopped = YES;
self.activityIndicatorView.center = self.view.center;
[self.view addSubview:self.activityIndicatorView];
[self.activityIndicatorView startAnimating];
// Initializing Data Source
NSURL *url = [NSURL URLWithString:StrJsonURL];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id getJSON) {
_JSON = getJSON;
[self.activityIndicatorView stopAnimating];
NSLog(@"%@", _JSON);
[self.tableView reloadData];
} failure:nil];
[operation start];
}
Not loadview code yet implemented
Hi,
I change kKYCircleMenuButtonSize
from kKYButtonInNormalSize
to kKYButtonInSmallSize
, but it doesn't change anything.
Constrants.h
#define kKYCircleMenuButtonSize kKYButtonInSmallSize
#define kKYCircleMenuCenterButtonSize kKYButtonInNormalSize
Hello, my name is Leal and I'm starting to play with the iOS apps. Trying to use this awesome UI Control, I'm in the obligation to mess with some files... ;-)
The first case below (1) is working fine (does not have nothing on the new view, but is working. I can click on the option 1, go to the new view, and do have a button to go back to the KYCircleMenu. But when I choose the option 2 (case 2), I can go to the google website, and it works fine. The problem is that I do not have the button to go back to the KYCircleMenu.
#pragma mark - KYCircleMenu Button Action
// Run button action depend on their tags:
//
// TAG: 1 1 2 1 2 1 2 1 2 3 1 2 3
// \|/ \|/ \|/ \|/ \|/ \|/
// COUNT: 1) --|-- 2) --|-- 3) --|-- 4) --|-- 5) --|-- 6) --|--
// /|\ /|\ /|\ /|\ /|\ /|\
// TAG: 3 3 4 4 5 4 5 6
//
- (void)runButtonActions:(id)sender {
[super runButtonActions:sender];
switch ([sender tag]) {
case 1: {
// Do a thing
// Configure new view & push it with custom |pushViewController:| method
//NSLog(@"Debug - TAG: %d", [sender tag]);
UIViewController *viewController = [[UIViewController alloc] init];
[viewController.view setBackgroundColor:[UIColor blackColor]];
[viewController setTitle:[NSString stringWithFormat:@"Cadastro"]];
// Use KYCircleMenu's |-pushViewController:| to push vc
[self pushViewController:viewController];
[viewController release];
}
break;
case 2: {
// Initializing the UIWebView interface...
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
webView.userInteractionEnabled = YES;
NSString *urlAddress = @"http://www.google.com";
// NSLog(@"Debug - We should open the URL: %@", urlAddress);
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//[webView.scrollView flashScrollIndicators];
//Load the request in the UIWebView.
[webView loadRequest:requestObj];
[self.view addSubview:webView];
[webView release];
}
break;
case 3:
// Just logging for now...
// NSLog(@"Debug - TAG: %d", [sender tag]);
break;
case 4:
// Just logging for now...
// NSLog(@"Debug - TAG: %d", [sender tag]);
break;
case 5:
// Just logging for now...
// NSLog(@"Debug - TAG: %d", [sender tag]);
break;
case 6:
// Just logging for now...
// NSLog(@"Debug - TAG: %d", [sender tag]);
break;
default:
// We should not be here...
break;
}
}
@end
Hello,
When I test the KYCirleMenu on IOS7. I get a white screen.
Any idea where the problem is situated?
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.