iOS - The DetailView's navigation area is gone when using Replace segue - ios

I exercise some sample project for iPad app.
It's a typical Master-Detail example which has some list of items and show details when user select item.
Using replace segue looks good. However a navigation area is disappeared, so I can't select other item any more. (On landscape mode, MasterView always shows. So it's okay but it is not a best situation.)
It's welcome for any advice.
Thank you in advance.

Related

Split Controller master table view pushes to master nav stack not detail

I am trying to set up a very basic Split View Controller. The left side (master) is a table view, which when a row is tapped, I expect to load details into the right side (detail).
I do not know what I'm doing wrong. I have an example project that functions exactly how I want it to, but I'm missing something in my main project. I've very carefully scoured the example project and as far as I can tell, everything is done exactly the same in my main project.
The problem I'm having is, when I tap a cell in my table view, the view controller that is invoked, appears in the master (left side), not in the detail (right side).
My question is: what exactly do I have to do to get the right side to display the detail?
I'm testing on an iPhone 7 Plus Simulator in landscape mode. Portrait mode works fine.
As far as I know I have all the correct delegate setup complete. Thanks in advance!
Wow! Okay, I figured out what was wrong. This has got to be a bug in the storyboard UI, because it does not make sense that this would be the problem.
When I ctrl-dragged from the table view cell to the nav controller so as to create the detail segue, I chose "show". I then realized that it should actually be "show detail", so I went into the attributes of the segue that I just created and changed "Kind" to "Show Detail (e.g. Replace)", which as far as I know, should end up being the same thing as if I would have selected "Show Detail" when creating the segue. It is not.
After a great deal of trial-and-error, I discovered that I had to delete the segue I originally created and re-create the segue, selecting "Show Detail".

How to recreate the Explore Menu on the Apple App Store

The Explore menu in the Apple App Store allows you to make a selection from a UITableView and then it segues to a new view while showing the previous selection at the top of the screen. It's the best example of mobile breadcrumbs I've ever seen. Here's what it looks like in action:
On this screen I click "Consumer Products" and that shows me the next screen. Without taking me out of the view.
You're able to press on any of the breadcrumbs and segue back to that view.
Can you please show me in Objective-C, how you would achieve a segue like this?
(The most important part of the segue is the breadcrumb functionality at the top of the screen.)
Thanks!
Rob, I've made very simple project, but hope it will give you an idea how you can achieve such effect
BreadCrumbsTable

How to implement xcode storyboard with left side menu (without slide)?

I tried to search on this website but I don't found what I want.
I'm developing my first iPad app with Xcode (iOS 7) and I'd like to put a list always displayed at the left and when clicking on some elements of the list the view controller has to changed.
Should I use a masterDetail ? Or something Else?
How can represent that in the storyboard?
Thanks
Picture here
Yes, use the master detail template. This will create for you a UISplitView with a list on the left and detail view on the right. You can then adjust the code to your needs.

TabBar More Button "remembers" last opened page

Hi stackoverflow community,
I really need help with a problem, I found no working solution.
I have an App which uses the TabBar for navigation.
There are 8 Tabs, 4 on the main screen and 4 in the tableview of the "MORE" Button.
My Problem is that when I go to one of the pages in the "More" menu, and then change to another page by clicking on a Tab, the open page will be saved.
And when I now click again on the "More" Button, this page will be directly opened.
But I want the "More" Button to ALWAYS open the List with the possible selections.
How can I achieve this?
I'm really thankful for any help :)
PS: I implemented the TabBar via the Storyboard.
This is expected behavior. What you could do is to overwrite the –tabBar:didSelectItem: item method and manage to pop the visible view controller off the "more" item navigation stack back to its root view controller every time the more item was selected.
Be aware that this may cause confusion and frustration on the user's side, depending on the depth of the navigation stack (i.e. the deeper the user goes, the higher the frustration might be).
Also, this might be against Apple Human Interface Guidelines and therefore there is a chance that this custom behavior leads to a rejection.

View Controller in the "More" tab doesn't rotate, but it will if it's on the home row.

I have an app built in storyboard that needs to support landscape mode in just one view controller. I decided to support iOS 6 after some issues with supporting iOS 5 and running iOS 6 on my phone. I used this Stack Overflow answer: https://stackoverflow.com/a/12505461/1050388 but I'm still seeing a weird quirk. (For those interested, my controller scheme is Tab Controller -> Navigation Controller -> TableViewController -> UIWebView. The UIWebView is the only VC I need to rotate.)
I blocked all but one VC from turning, but that VC is in the "More" tab. I initially had a quirk where this "More" VC would change orientation to landscape when rotated and then any subsequent VC would be in landscape, but I found this (https://stackoverflow.com/a/12526152/1050388) and creating a category for UINavigationController helped to solve that issue.
However, when I navigate to that tab in the "More" list, and turn the VC, it doesn't rotate. But when I click "Edit" and move that tab to the home row of the initial 4 tabs, it rotates just fine. If I move it back, it doesn't rotate. Anyone have an idea why this is happening?
I believe the problem stems from the fact that the More navigation controller is generated dynamically by iOS and is read-only.
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITabBarController_Class/Reference/Reference.html#//apple_ref/occ/instp/UITabBarController/moreNavigationController
It would be great if the technique of using a custom category would work here but based on your experience I guess it doesn't.
I also need better control of orientations for More tab views. Please post anything you come up with. Thanks.

Resources