My view appears in back button of iPad but appears okay on iPhone - ios

I am using SwiftUI to build an app and when I tested it on iPad and iPhone, there is a difference. My views are different in iPad and it is showed by tapping back button as a hamburger. The thing is that I have 3 tabs and my first tab is okay. However, 2nd and third tabs are having this issue. I was wondering if you could help me fix it.
Here is a picture:
This is the iPad view.
This is the iPhone view.

Are you using a NavigationView? By default those layout differently on iPad and iPhone. If that's the case, try adding this modifier to your NavigationView:
.navigationViewStyle(StackNavigationViewStyle())

Related

UITabBar image incorrectly positioned on iPad when inside splitview + navcontroller

I have a hierarchy like so:
In storyboard, on iPhones (in all orientations), and when using iPad split screen with another app (see screenshot below with contacts side by side) this all works great.
However, when the iPad app has the full screen, my tab bar images are horizontal instead of vertical.
Anyone know of a way to force the tab bar to change the orientation of it's images so it's vertical? It's almost like the OS doesn't recognize that it should be using the compact traits for this mode on iPad.
Further details:
This is an iPad 9th Gen simulator on iOS 15.4. and is also present on a real iPad (5th gen iOS 15).
I am using SF Symbols for the image in the tab bar
I am using the technique described here so that I can have more fine grained control over whether any given view should be shown in the master nav/tab view or if it should show up in the detail view.
I am using .allVisible for the preferredDisplayMode, tried changing it to primary over with no luck.

Why does my display look different on iPhone simulator vs. iPad simulator?

I am working on a puzzle app on Xcode Version 11.0. My app displays as expected on my physical iPad mini and also on the iPhone simulators, but if I use an iPad simulator it appears to switch the orientation to Portrait mode and display my secondary screen as a popup on top of the secondary screen (see the images below).
I am using an "Action Segue" to get from my 1st screen to my 2nd screen. I have tried several different options (Show, Show Detail, Show Modally, Present As Popover). The result is slightly different, but all of them give the "Portrait popup" look. I am guessing that this is a newer feature, and I just need to set some flag to avoid it, but I don't have any guesses on what to look for. Could anyone offer some help?
iPhone 8 Simulator (this is what I want it to look like)
iPad Simulator (with undesired Portrait popup appearance)
Edit the segue to be Show Modally and also Fullscreen (instead of Automatic).

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

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.

UITabBarController does not respond on iPhone 5 simulator: 4-inch retina display

I have a UITabBarController that displays four options. These have all worked fine until now.
My problem is that the tab bar does not respond only when testing on the 4-inch retina display device in the IOS Simulator. All other devices the tab bar responds and I am able to select other views.
I don't have an iPhone 5 to test it on so I don't know if this is a fault with the simulator or Apple have changed the workings of tab bars etc for the new hardware or made it stricter and I wrote the wrong code in the first place.
I had this issue as well and this worked for me:
Go to the MainWindow.xib, select the Window object and check the "Full Screen at Launch".
In your main window, select the "Full Screen at Launch" option. Here's an image:
Could there possibly be a transparent view over the top of it? The change in view size might be positioning something in the wrong place.

Resources