How to detect click in subview in hamburger menu - ios

So I have this hamburguer menu that pop ups via animation and I have a question. How can I detect if the user touched outside of the current view, in this case in the previous view that is just a little bit in the right so I can dismiss the current view. I'm having lots of problems with this because it seems like I can't detect anything on that right view.
Im using a table view controller and a transition to make the hamburger menu.
Im leaving 2 images bellow so you guys can take a peak and if u feel like it help me.
Thanks in advance guys!
The side menu
The main view

Related

How to implement swipe views with CollectionView/TableView Controllers?

I am creating an app using Swift, and I'm still trying to figure out what the best configuration would be.
What I'd like to have is 3 screens (the left screen would have a side out panel) that users can access via the navigation bar menu or just by swiping left/right the screen for more accessibility.
I could easily create my TableViewControllers/CollectionViewController and the menu, but I'm struggling at making the screen able to detect users gestures at the same time, and I'm not sure whether I should use 3 View Controllers and then add the Collection View/Table View via the Storyboard, or directly use the CollectionViewController/TableViewController
I added a picture here describing what I'd like to accomplish:
Also, I wonder whether I should use storyboards or not for my project.
I know that's a lot of questions !
Any ideas please ?
Thank you very much and have a good day,
J.
You need to add 2 "swipe gesture recogniser"s to your middle screen(your second screen in your attached image) , and set one for identifying left swipe and another for right swipe. Create action methods for both in your view controller and add code accessing left screen and right screen in respective methods.
note - you need to drag "swipe gesture recogniser" to top bar of your view controller scene to add it.
You can use a scrollview as a container, put three ViewController in it.

Slide down Menu in IOS like Paper app setting

I am new in IOS development and i am trying to develop a slide down menu like that in "Paper" app
its looks like a view sliding down and pull another view to locate it at its place in view .
in other words a view that is swapped down and another view appear above it .
I know this is confusing and I hope the attached images can describe what i want to ask
i need an advice or a component to help me develop this menu
Thanking in advance
the view before sliding the menu
here is the view while sliding
the view after sliding the menu
I suggest using UIPanGestureRecognizer for this after positioning upper view at -Y axis and changing the Y coordinate of both views as user pans down the lower view. Try and revert back if you get stuck somewhere.
You can follow this tutorial for a quick kickstart: http://www.ioscreator.com/tutorials/dragging-views-with-gestures

How to handle menu calls

I have been working on an app for a while and I designed a menu that when you press the 'menu' button in the navigation controller, it brings up the menu over top of whatever view you are currently on. When you press outside the menu it makes the menu dismiss itself and returns to just the view you were on previously. My problem is that when you press on the cells in the menu, I want it to dismiss the menu and then have the navigation controller on the super view pop to the new view (depending on which cell was pressed). Now I don't know if that is a really bad design or not. If this is possible I would love some feedback on where to get some more information on how to put that into action.
Here is an image of the menu in action running in the app:
If this design for the menu is super complicated or not practical, a push in the right direction on how to implement one would be great. Have tried finding some resources but they are mostly pre-built menu's that you implement and I am not looking to use something like that. That is why I built my own!

How to Display Small Grab Handle for Hidden UITableView on iPad

I have an iPad application with a SplitViewController. I am hiding the left hand navigation panel (UITableView). It can be viewed by swiping in from the left of the screen. I would like to display a little "grab tab" on the left when it is hidden to give the user a visual indication that there is something there that they can view. I am just not sure how to go about this. Can someone point me in the right direction?
Solution 1
Well, then you will have to put create a view in which your rootViewController(leftView) will reside along with a custom Button with the handle image and you can remove or hide the customButton when your root view is visible and show when your root view is not visible.
Also, you will have to give this view(customButton + leftview) as argument to your splitview during allocation.
Solution 2
You can simply add a customButton to the splitview at the left side and bring it to the front by using [parentview bringSubviewToFront:subview] when rootview is not visible and remove it when it is clicked or swiped according to your functionality.
Hope This Helps You.

iOS connect my view to popup on button press

I have two xibs, one is my title screen with buttons, the other is a more specific window that should come up when one of the buttons is pressed.
This isn't switching the whole screen, just a popup window, where clicking outside of the bounds of that window will make it disappear leaving only my title screen remaining as it was visible behind this popup view. This is similar to my understanding of "modal views".
Anyway I do not quite get how to connect it to the button on my title screen. I have the views made in IB ready to go. I'm not sure if I have declared all objects to satisfaction yet.
From what I understand I think I need a UIViewController or something, but its all a pretty thick fog of information right now
insight appreciated, or links to proper noob sources would be helpful
Does your title screen have a view controller (or is your app delegate the main controller object)? You will want to add an IBAction to that object, connect the button to it, and then present your other view controller modally (or in a popover) from there.
A popover will appear in a small window with an arrow, and tapping outside will close it. A modal view controller typically slides up into place, and you have to press a cancel button to close it. This guide explains how to use a popover. Using a modal view controller is simple if you have a view controller: [myViewController presentModalViewController:nextViewController animated:YES].

Resources