For adding FloatingMenu Action button in swift I used the following
Creating a floating menu in an iOS application
it is fine for showing FloatingMenuAction when we tapped on Floating Button it shows a view like as
Now I want add 1 transparent view as background on current view and also add a button actions/gestures for each menu option.
How can I do this?
Thank you in advance
I'm trying to figure out how to make a retractable menu (left panel) as gmail app or facebook app...
I don't know how to move just part of the front window to show the menu (in another view) when you tap on the corresponding button.
Can you give me some clue on how to do it?
Create a custom container controller and use affine trasforms to the view controller's view.
I'm trying to create a back button on my navigation bar in x code. However when I drag it across from the objects library to the navigation bar in the storyboard it doesn't come up.
OK So this is crazy but...
Click on the navigation bar and in the attributes inspector, Just Type something in the field marked Back Button. Then in the scene hierarchy you'll see the button, though it won't yet appear on your navbar. In the hierarchy, drag the button onto the Navigation Item and viola it appears. Now to make second one, hold option and copy the first one. If you try to add one from the object browser, you'll lose the first one.
If done properly, the first will show up on the right and the second on the left.
Good luck.
This happens when the navigation is not set up correctly, as dbajkovic mentioned, if you do not have a navigationcontroller, it will not work. Your scoreboard should look like this:
You can not add the button to the left, only to the right.
#Jonathan Thompson: I came across your post and since I just learnt something new, I am going to add it as a response to your question.
There are two separate buttons - Back button and Bar Button. Back button has a reverse (right to left) pointing arrow and a Bar button is a regular rectangular button. The following describes how your could implement them in your program:
Back button:
On the root view controller, ctrl + click on button and drag it to the view controller you are trying to connect it to. When you are given an option to select from, choose Push, not modal. This will automatically add a back button on the next view controller. (Run the program to confirm it.)
Bar Button: (Credit: dbrajkovic)
For adding the bar button, click on navigation bar of the navigationViewController you are interested in. Under Attributes inspector, type some name in Back Button and hit enter to confirm. Open document outline and locate the viewController you were working on. On the left side of Navigation Item locate the disclosure triangle. Click on the Bar Button Item. Ctrl + click + drag the button to the navigation bar of that viewController. You can choose whether to place it on the left / right side.
I am working on project where I have to add a dialog box on the click of tool bar button in such a manner when user click on the that a dialog box open with three buttons.
For Example if user click on share button then a dialog box open (pointing to that button) containing three buttons facebook, twitter, email.
Please be sure that I dnt want to use action sheet.
Please provide any sample code or any tutorial.
You could create a viewcontroller object with three desired buttons on its view. And then On the viewcontroller where you're currently on you can call presentModalViewController:animated method. Like:
MyModalViewController *modalController=[[MyModalViewController alloc]init];
....... then whereever you touch up the tool bar button you can say:
[self presentModalViewController:modalController animated:YES];
But you should not forget to call dismissModalViewControllerAnimated at some point(probably write this inside a button touchupinside target action method) on the dialog box to avoid having the modal view stuck on the screen forever. :)
I have added add(+ symbol button) button to my navigation controller.
When I click it a view appears from bottom. I added a navigation bar and two buttons to it.
One save and one cancel button. And the view have one textEdit box. After editing I can save or cancel. If I touch cancel I need the view to disappear like it should go down again.
I think all iPhone , iPodTouch users use it. Like when they touch Add item then a view appears from bottom and when they cancel it goes down again. How can I make in this way in my application.
Maybe you're talking about a UIActionSheet?!?
http://developer.apple.com/IPhone/library/documentation/UIKit/Reference/UIActionSheet_Class/Reference/Reference.html