Side menu on UISplitViewController like Gmail iPad App - ios

How to put a side menu bar on the UISplitViewController like Gmail iPad App?
Based on Apple Documentation on UISplitViewController, it always must be the root of the application. I have tried to put the UISplitViewController into a navigation controller and it doesn't work
https://developer.apple.com/documentation/uikit/uisplitviewcontroller
Can anybody guide me on how to achieve such layout? I am totally lost. Been figuring it out for days and still can't find any solution.
If there is any library out there that can help me to achieve this function, will also be so appreciated.
I am using Swift 4. Thanks in advance!

Related

How to turn iPhone style table view into iPad style table view (Swift)

I apologise in advance if this is a really simple thing to do, but I have searched and searched for answers and cannot find anything anywhere.
I have made an iPhone app that has a similar sort of interface to the built-in iPhone Mail app. It has a table view, and when you tap on an item it segues to the corresponding document. When I build it for iPadOS it works in the same way, as you would expect.
But this isn't how iPad apps are supposed to look. I want my app to look like the Mail app does when running on an iPad, with the table view to the left of the content when in landscape, and the ability to slide it in when in portrait. I simply have no idea how to even get started though. If anyone can help, I'd really appreciate it! Thanks!

How to develop sections in iOS with page controls

how can I write an iOs 7 app that has sections whose navigation is based on the page control element? Just like twitter's Home, Discover and Activity sessions, in picture below
How can I do this? I want 3 sections too. Does Xcode's Storyboard have any special feature to help me accomplish this?
I'm quite a newbie in iOS development and I appreciate any help you could give me.
Thanks in advance!
An app like that can be set up with a UITabBarController at the root. The first tab would be a UIPageViewController. In the UIPageViewController would have 3 pages. Each of the pages would be a UITableViewController.

Presenting a login with storyboards for iOS

I have a simple iOS Master-Detail Application
-> On the iPad it's a splitview, on the iPhone it's a simply a tableview with navigation
Now I need to have a login first but I just can't find a proper solution for it.
I think the only part of the application that should decide whether a login needs to be presented is the AppDelegate.
But how would I have to wire my storyboard to be able to do that on both.. iPhone and iPad?
The other idea is to start with the login and dismiss it if it's not needed any more. But I also can't push or modal present a splitview on the iPad...
How would you solve this problem?
Without storyboards it's easy.. but with storyboards for me it seems hard do to... but I have to admit that I don't have any storyboards experience so far...
Thanks for helping
http://maybelost.com/2011/12/tutorial-storyboard-app-with-core-data/
Download this sample app. It contains a Login with CoreData. Its very simple :)
Several weeks ago i used that also for my first Login and it worked like charm.
Hope it will help you too!

iOS:Switching between views using UINavigationBarController

First of all, I am using XCode 4.2 and I am not using storyboards. I need to make an application with 2 views.
First view will contain a button and a navigation bar, the button's IBAction should only go to the second view, and from the secondview you should be able to go back to the first view via the Navigationbar.
My problem is the navigation controller / navigation bar, how do I set that up ?
I know that it would be smart using the singleView app and then add a navigation controller, the problem is that I dont know how to set it up in the code.
I have searched for similar problems on the internet, and I keep getting into posts where they use another SDK or using an older xcode etc.
What I do know is how to make the button, actions and delegation.
Anyone out there who is sitting with the one and only tutorial I am missing or can tell me how to do it ?
Thank you
Use the Master-Detail Application template. Ignore the stuff for tables, it has navigation stack implemented in it. By deleting the tables, you should be pretty much left with what you are after.
You should go to http://developer.apple.com/, search for UINavigationController, click on UINavigationController Class Reference, then look at one of the linked sample code projects there.
if you really want to learn how to implement it from scratch (and not depend on the master-detail template), i highly recommend the following resources:
the apple documentation on UINavigationController
the solutions from the big nerd ranch iOS Programming guide (particularly the Homepwner example)
also found this tutorial in a quick google search, but haven't fully vetted it in xcode 4.2 (there will likely be small differences in how you have to go through the steps).

Recreating the iOS 5 Mail.app sidebar (iPad)

iOS 5's Mail app has a nifty little swipe gesture that brings up the sidebar in portrait mode. Now it seems like that gesture would be useful in other apps that use the master/detail layout, but as far as I can tell Apple hasn't released any sample code or documentation to show how the effect was created.
I've thought about how to replicate the effect in my own app but I'm not super experienced in view programming. Has anyone managed to recreate this effect in their own apps or would anyone know how to do so?
Here's a downloadable project that pretty well reverse engineers everything the Mail app is doing with its split view interface: https://github.com/mattneub/Programming-iOS-4-Book-Examples/blob/master/convertedToIOS5/p560p575splitViewNoPopover/p560p575splitViewNoPopover/MySplitViewController.m
Here you go: http://useyourloaf.com/blog/2011/11/16/mail-app-style-split-view-controller-with-a-sliding-master-v.html

Resources