iPhone - Slide Menu (UITableView) over current UIView with blur effect - ios

I would like to add to my current application a menu which "slides" over the current UIView. I want to use a UITableView for the menu. It should look like the old Facebook-App. If you tap the menu Button on the top left, the menu should slide from left into the screen. But not like the Facebook app, the menu should not "push" the other view away, it should slide over the whole UIView. It would be great if someone could help me how to do this.

No need to code that your self. Look for a library that can help you accomplish this. For example:
https://github.com/ECSlidingViewController/ECSlidingViewController

Related

How to detect click in subview in hamburger menu

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

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.

iOS view push transitions with visible next view

I'm trying to achieve a view transition style, the one that you can see when you slide from the left side of the screen towards the middle if you're in a view that can go back. (find any app that has a back button somewhere, and just swipe from left to right starting from the edge of the screen).
The difference between this and a regular push transition is that you can see the next AND current views on the same screen and, as you slide (if you go slowly) you can really see the view and "play" with it. But right now what it does it simply quickly slide (with black on the back) and show the next view.
I'd like to be able to do that between some of my views and i have no idea how to achieve that. I'm just using a custom segue that goes left to right or right to left but that's pretty much it.
Any idea how to achieve that?
If you are using a UINavigationController and the pushViewController:animated method, then this should be the default functionality on iOS 7.0 and later. Your new UIViewController will be able to be "pulled back" by the user using a swipe right from the left of the screen.

Page curl modal segue : leave bottom bar on screen

I develop an app for iOS 5+ with storyboards (and ARC). I have a view controller with no status bar, a top navigation bar, a map in the middle, and a bottom toolbar with a button at the bottom right. I've linked the button to a modal VC via a page curl segue.
My problem is I would like the page curl effect to apply only to the map (just as iOS 5's map), or at least not to the bottom toolbar, so I can present/dismiss the modal VC with the same button of the bottom bar (I want it to be persistent). Right now, I can present it by pressing the button, but the toolbar goes up halfway of the screen with the whole view. I can dismiss it by touching the upper-left side of the screen but it's not really user friendly.
I can add the toolbar to the modal view controller, but that doesn't look nice...
Any ideas ?
Thanks.
A quick thought for you as I stumbled on this while looking for something else, but I would consider:
Putting the top section of the screen within a container view, then presenting the modal view from that. It will leave the bottom (toolbar area) clear.
Alternatively, instead of using the standard segue you could implement your own page curl, and/or using some of the open source projects that demonstrate how to do this.
You probably solved this long ago but perhaps this helps someone :)

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.

Resources