Xcode app, navigation bar not showing on iPhone 6 - swift

I have an app that has been out for some time. I recently updated it to Swift. I have one user who is seeing different results than I am on either the simulator or on two different devices. The view presented is for video playing and on my devices and the simulator the navigation bar is present and the control bar for the video, unless the screen is tapped to dismiss it. On my user's iPhone 6 there is no navigation and no control bar.
I have not called for the navigation bar to be hidden on that view.
Haas anyone any ideas on what is happening?

Related

How to mimic the custom NavigationBar item in Podcasts app

The iPhone iOS podcast app has a trailing bar button item that behaves differently than most UIBarButtons. You can see it on the Listen Now page. It's the button on the top right that takes you to the account page. It is lower than normal, and it's inline with the title of the NavigationBar, and it is bigger than normal. Most importantly it scrolls up with the navigation title and disappears under the compact Navigation Bar. (The App Store app has the same behavior on the "Search", "Games" and "Apps" tabs.
Does anybody know how to get this behavior in either SwiftUI or UIKit? I haven't seen anyone else reproduce this and I wonder if this is something that only Apple has access to.

Running Xcode Project on iPhone - Black Screen?

When I run my project on the iOS Simulator or on my iPhone, half of one particular view controller becomes a black screen. None of the functionality for that view controller is there, and half of the screen is black. However, the "Back" button at the top of the View Controller is still there, and it works. This View Controller should have a Table View and a UILabel. However, neither of those appear. Any ideas why this might be the case?
Thanks.

iPhone app not running on simulator xcode

So I'm trying to run a new tabbed application in the iPhone simulator, but I keep getting a black screen after my app loading screen.
I've tried Reset Content and Settings and I've made sure that my storyboard is the main interface.
My app also doesn't appear in the iPhone simulator app pages
Black screen appear only when, you do not set any initial launching screen in the application, and thus it show black window screen. In your storyboard select "Tab Bar controller Scene" and check its attribute inspector and check if "is Initial View controller" field is selected or not.
Make sure you set your initial view correctly in Storyboard

iOS7 Vs iOS8 auto layout and webview issue

I have a view controller that is composed of a web view and a toolbar with some basic controls. The toolbar is pinned to the bottom of the screen using auto layout. It has four constraints, to pin it to the left side of the screen, the right side of the screen, the bottom of the screen and another that pins the bottom of the web view to the top of the toolbar.
I am having too issues with this. The first is that the web view when loading a URL has a black bar running across the bottom of the screen for a second or two while the page loads, see attached screen shot. This occurs on both iOS7 & iOS8.
[EDIT]
This bug and the one below are related I think. I just discovered that the horizontal indicator when scrolling displays not at the bottom of the screen but higher up, where it would appear if the tabbar where present.
[/EDIT]
The second issue I am having with iOS7. The screen that calls this screen is the typical navigation bar inside a tab bar setup. The user presses a button to go to a particular page, the browser gets created and pushed onto the navigation bar stack. It hides the tab bar when created. In iOS8 this works perfectly, the toolbar is pinned to the bottom of the screen. In iOS7 the tab bar is removed but the toolbar is placed as if the tab bar was still present?! Any ideas how to fix these two issues? Many thanks.
FYI - Xcode 6.1.1
The "black bar" is most likely your app window background. At the time of loading the web view is still under the navigation bar. Perhaps the constraints are being overridden. Check your storyboard settings:
If this is it, it might solve the second issue as well.
Speculation
The reason iOS 8 works is because from Apple talks I gleaned they realise many dev had issues with their views being under the nav bars by default. Introduced with iOS 7. They likely changed this in iOS 8 but found no written evidence. If someone can confirm or deny this, I'll update the answer.

Can I use setModalPresentationStyle on iPhone?

I've been watching some of the iPhone development videos off iTunes specifically "Standford Fall 2011 iPad and iPhone App Development" and in lecture 15 Modal View Controller/test/Animation is says that setModalPresentationStyle is only to be used with iPad. I was wanting to do this with an iPhone app, is this possible? has there been an update since this was made that allows it? or is there another way I can simulate the features in this? Like the form sheet presentation style.
Indeed, the modalPresentationStyle property of a view controller only applies to iPad. On iPhone and iPod touch, the presentation style is always fullscreen.
According to the documentation:
The presentation style determines how a modally presented view
controller is displayed on the screen. On iPhone and iPod touch
devices, modal view controllers are always presented full-screen, but
on iPad devices there are several different presentation options. For
a list of possible presentation styles, and their compatibility with
the available transition styles, see the “UIModalPresentationStyle”
constant descriptions.
To get the same effect as a form sheet presentation on the iphone, the easiest is to present a modal view controller setting it's modalTransitionStyle set to UIModalTransitionStyleCoverVertical (which is the default transition style).
On iPhone and iPod touch, modal view controllers are always presented full-screen, but on iPad there are several different presentation options.
https://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIViewController_Class/Reference/Reference.html
You can try custom open source library for presenting form sheet on iPhone https://github.com/m1entus/MZFormSheetController