Xcode 7 GM Show Segue Turns Into Modal Segue - ios

I have an app with a navigation view controller and once a cell is tapped on, a screen is pushed on top of it. However, when testing this app on a simulator and on multiple devices, the push segue somehow turns into a modal segue. These pictures will show a gist of what is happening:
Table View:
What is supposed to happen (Show segue):
What happens instead (Modal segue):
I am running this on an iOS simulator but for my app the result is the same. I have seen people post about this issue taking place on iOS 7, but is this supposed to happen with iOS 9?? Please help.
Thanks!

I have found a solution. It appears, that now, in Xcode 7, you should make a segue not to navigation controller, but to your viewController directly, in order to achieve desired push segue.

Related

NavigationBar is under the statusbar on iOS 9 and 10

I've been developing an app for the past few months, and I was always testing on my iOS 11 device and simulators. Since we are close to public release, I decided to test the app on iOS 9 and 10 simulators to make sure everything is ok.
To my disapointment, the core element of the app is broken: Its an app that displays a list of articles in tableviews, using a TabBarController. More article categories can be accessed through the side menu. However, when I display a VC form the side menu, for which I create the VC, embed it in a NavigationController and then add it in the TabBarController and make it the selected tab, the NavBar is under the status bar and the tableview's content insets extend under the tabBar, which also breaks my TabBar and creates a whole lot of other problems.
The weird thing is that after navigating to the next VC, the whole statusbar situation is fixed, so I'm guessing something is initially off with the NavBar that gets fixed once a second VC is pushed.
Does anyone have any idea on how to fix this bug? On iOS 11 everything works perfectly, while on iOS 9 and 10 only when a new VC is pushed, the error is fixed. Please note that I'm not using a UITableViewController but a ViewCOntroller with an embeded TableView, since I also need to add othr views at the bottom of my view controller.

Xcode 7.3.1 view controller in storyboard disappeared

I'm making an iOS app using Bluetooth. The app is supposed to show a list of Bluetooth device when the button "Bluetooth" is clicked. The list is a tableView shown as a popOver view controller.
When I turn on my computer the next day, the popOver view controller disappeared, but you can still see it in the list on the left side(Bluetooth device scene), and it is there when running it in simulator. But it is not visible or clickable in the interface builder.
I did nothing but closed my laptop, and opened it the next day. It's not that I'm using the wrong w/h size. I've tried that. Anyone know what's going on? Thanks a lot.
Screen shot of my storyboard

iOS9 Navigation Bar Back Button not working

Everything works perfectly before iOS 9.
However, when the app is running on iOS 9, nothing happens when back button is tapped so I am not able to go back as well as it keeps greyed out.
Also, I am not able to segue to the next view after the first segue.
For example,
HomePage -> tap a button to segue to view 1 -> Segued to View 1
-> tap on a button to segue to view 2 -> nothing happens
I uses the code below to perform segue,
UIViewController *push =
[self.storyboard instantiateViewControllerWithIdentifier:#"storyboard_id"];
[self.navigationController pushViewController:push animated:YES];
This issue only happens at iPhone
but the app works flawlessly when running on a simulator.
Thank you for your help.
I came across a similar issue (possibly the same).
For me the details are that I was building using Xcode 6.4 then testing on iOS 9.
Upgrading to Xcode 7 and iOS 9 SDK resolved the issue.
Finally, the problem is solved.
I have been create a new project and use the same method to perform segue and it segued flawlessly. So I excluded the possibility of Xcode might cause the problem. And I found that I have passed the device token for apps at my app delegate by a NSRunLoop, I don't why it will cause such a weird problem, I decide to save the device token at NSUserdefault, then get it at the home page and parse it to server. So it works like a charm now after I take away the NSRunLoop now.

Present Popover iOS 8 storyboard

I am making an iOS 8 app, and I like to use the storyboard whenever possible.
My problem is very simple, I want to make a simple popover view that appears when a user clicks a button entirely from storyboard!
When the user taps on "ADD" the popover is displayed.
So I did that:
It works on iPad:
but on iPhones (anyone) it displays the popover on fullscreen.
But I thought that the new popover system works on iOS 8 (my deployment Target is iOS 8)
Someone knows why?
Thank you in advance.
And sorry for my English.

Xcode 6: can I force a push style segue?

This is an infuriating problem... Xcode 6 and iOS 8 introduced adaptive segues, but they do not degrade gracefully in iOS 7.
Here is the (very common) scenario: I have an iPhone storyboard with a navigation controller with several other view controllers that should be pushed (i.e, slide from the right to the left) when the segue is called. The segues were created with a previous version of Xcode in IB, but upon inspecting them with the attributes inspector I see that the segue type selected is "Show (e.g. Push)".
This produces the push style segue I'm after in iOS 8. However, in iOS 7, the views are presented modally (from the bottom up), and what's worse, they lose their navigation bar. Since it was created in a previous version of Xcode, I tried re-creating the segue in IB to no avail.
I cannot find ANY documentation on this from Apple. How can I force the push style segue for iOS 7 without using the now deprecated Push segue?

Resources