Closed msleal closed 11 years ago
If you want to use a button instead of back button (on navigation bar), you need to create a button together with the circle menu, i.e., insert circle menu below the button.
You can take a look at THIS CLASS, I created a centerMainButton_
together with centerMenuUtilityViewController_
(which is a subclass from KYCircleMenu). Then I can use centerMainButton_
to control "back action" for all child views.
In this case, I suggest you to use iPokeMon
branch of KYCircleMenu, though it's in development. ;)
Here's the DEMO VIDEO, or the NEW ONE.
Hi Kjuly! No, I just want to have the navigation bar (the back button), the same as I have when I select the option 1. I don't know why the back button is on the first option, and not on the second... I think I need to add the navigation bar with the back button, just don't know where I need to add this code.
I see, you need to use -pushViewController:
instead of -addSubview:
.
So try to replace
[self.view addSubview:webView];
to
UIViewController *webViewController = [[UIViewController alloc] init];
...
// Here |webViewController| is a wrap for |webView|, so you can push it by |-pushViewController:| method.
[webViewController.view addSubview:webView];
[self pushViewController:webViewController];
...
Perfect... Thank you very much!
My pleasure :)
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.
Here is the code: