As of Xcode 6 beta 3, there seems to be no padding on my bar button items, and they are pushed all the way to the edges. I am using size classes (single storyboard). When I investigated the storyboard further, it appears that the spot where the bar button item goes is moved off of the navbar somehow. Has anyone else seen this? It happens no matter which layout I select (photo below is on Any/Any).
Here's an image of how it looks in the simulator:
And this is what I see on the storyboard:
Resolved. Beta 4 fixed this issue.
Related
After upgrading to Xcode 9 and building my app for iOS 11, I have had a problem with the positioning of items in the UITabBar. They are offset to the left (shown in red outline).
I am using just a regular UITabBarController and have not done any custom UI code. I've tried looking for any new UITabBar properties that would effect this, but I can't find anything. Messing with UITabBar itemPositioning property doesn't fix the issue.
I have a problem with a "double" navigation bar in a screen of my iPhone app.
Starting position:
Xcode 8, Swift
I have a TableView with static lines that is embedded in a navigation controller. From the first cell I then call a screen (Segue Show Detail), which is very complex (labels, text boxes, buttons, etc.). When I execute the "Reset to suggested constraints" function on the screen, the screen is supplied with "generated" constraints. This is still clear. When I run my app in the simulator (iPhone 6) or my own iPhone 6, I see on the above screen a status bar, then my right navigation bar (Back button, title) and below an "empty" 2.Navigation bar. This decreases the screen down and is no longer fully visible. If I delete the constraints for the screen with the "Clear Constraints" function, the screen in the simulator (i6) looks good as I develop in the storyboard for the iPhone 7. But when I connect my own iPhone 6 and test, the screen does not fit completely to my iPhone, because right and down is something truncated.
I suspect the error in the "generated" constraints.
Now my question:
How can I check the generated Contraints (well over 100) for errors?
In the Internet and the forum I found nothing, which could help me.
Workaround for me:
The top UI element on the screen is a label across the entire width of the screen. For this label, I set a constraint manually, in addition to the generated constraints
Label.top = Top Layout Guide.bottom + 44,
whose value I then change to the value
Label.top = Top Layout Guide.bottom
This causes the label to slide directly below the status bar in the storyboard. The navigation bar is then no longer visible in the storyboard. This makes the placement of UI-Elements at the bottom of the screen somewhat more difficult because you do not know exactly which space is still available.
The display in the simulator (i6) and on my iPhone 6 looks however through the workaround ok.
For your help I would be very grateful.
Greeting Reinhard
Something strange happened to my project after I upgraded to Xcode 8 and converted the project to Swift 3.
Most interesting thing is that layout shows fine in the simulator but in the Preview everything is shifted to the right. Center of all devices appears to be almost at the right edge. For example I drag a label to the storyboard select Align Horizontally and add a constraint to the top... in preview it shows up for all devices shifted to the right instead of in the middle but in the simulator label is in the middle, exactly where it is supposed to be.
Also, if I create a new ViewController is would work just fine in preview and simulator... Anybody knows what can cause this issue?
In Interface Builder, select the view controller and then choose "Update Frames" from the "Resolve Auto-Layout Issues" popover menu that is in the lower right corner of the Interface Builder canvas. The issue is that in Xcode 8, the size of the previewed scenes has changed. If you tell it to "Update Frames", the various subviews should be adjusted to reflect the new "simulated size" for the scene's top level view (assuming all of your constraints are properly defined).
Leaving Xcode and re-starting worked for me to get the correct view per device in Storyboard again.
I'm a beginner in iOs development but I'm a web wedeveloper.
I was trying some small things on Xcode and I face a problem without finding solution or usefull information on the web, take a look to my UiView below
which is quite large, and has a bottom bar with Done button, and and another bar with some button.
But when I'm running the simulator, I can't see this bottom bar guide, I do have a button on it, I have an action on it, the "Hidden" field is not selected.
Any idea why it's happenning (Using Xcode 6 beta 7)?
Set left and right border constraints to 0, and "center horizontally" constraint as well.
I'm just working on a little App and discovered an annoying visual bug. I will put the Screenshots below.
So, as you can see I just remove a row from the table view.
In the second and third picture you can see that the navigation bar is blurred red in the lower right corner.
In the fourth picture the blur has tone away, but just because I scrolled the table view.
Now my question: Is that a bug? And if yes or no, how can I make the blur disappear without scrolling the tableview (That it wouldn't be blurred in the third picture)?
Thanks in advance.
EDIT: This is running on iPhone Simulator iOS 7.1 Beta 5. It just happens for the first row.