StatusBar bug in iOS7? [duplicate] - ios

This question already has answers here:
Status bar and navigation bar appear over my view's bounds in iOS 7
(20 answers)
Closed 9 years ago.
I have been stumpted by the fact that apple is making the StatusBar Overlay the viewController...or the bounds of my application. Is there a way i can move the TitleBar down in the StoryBoard? or do i have to guess where to place it? I am confused on what to do, now that the move to iOS7 has come. Here is my TitleBar in the application and in the Storyboard:
and:
How am i supposed to make this work? This is what i would like it to look like, without the green, but black.
I even tried what is in this post, but nothing helped. iOS 7 - adjusting for status bar

You need to read the document "iOS 7 UI Transition Guide". The simplest way to not let the status bar overlap the content of your view is to have a 20px high view sitting at the top of the view. That way your content won't move behind the statusbar. That being said, if you are using the UINavigationController as your "TitleBar", you shouldn't even need to add the 20px view, as the navigationcontroller takes care of it for you. All of this is in the "iOS 7 UI Transition Guide".
EDIT. For your information (or for anyone else who's struggling with this) I highly recommend looking at the "Customizing Your App’s Appearance for iOS 7" video from WWDC 2013. It is so comprehensive that it will pretty much solve all your iOS 7 UI problems.

Related

How to stop gray bar from appearing when UITextField is focused [duplicate]

This question already has answers here:
How to hide the shortcut bar in iOS9
(8 answers)
Closed 4 years ago.
I working on an app that is running on iPad with an external keyboard. I have a textfield at the bottom of screen. I tap in it, and this gray bar appears at the bottom of the screen, covering the textfield. In this case, I don't want it at all. What is it called? Is there some way to disable it?
It is the virtual keyboard. Every app, even on iPad, even with an external keyboard, must avoid having important interface covered by the virtual keyboard. You should take the usual steps for doing that, responding the keyboard-will-show notification in the usual way.

iOS 11: `UIBarButtonItem`s having placement and usage issues

We have an app that has been around since before the days of storyboards. Prior to iOS 11 everything was fine after we updated it to be 64 bit. We have found two issues when running under iOS 11:
On iPhones the single UIBarButtonItem in the navigation bar's RightBarButtonItems isn't being placed all the way to the right as usual (the left side buttons is in the proper position).
On iPads we have what looks much like a segmented control (but made of individual buttons). It works fine when it is not in any kind of bar, but when it is in a bar it doesn't get touches.
In both cases I have used the UI navigator in Xcode to see that iOS 11 has added a couple extra views between bars and buttons. One of the added views is a bar content view (specific class depends on wether it is a toolbar or navigation bar; _UIToolbarContentView or _UINavigationBarContentView). The other added view is consistent among all kinds of bars, _UIButtonBarStackView.
In issue 1 above the added stack view is adding a very wide zero height view after the right bar button that is pushing the button way to the left (like it is trying to fit on an iPhone 4's screen far). Since the class has an underscore in front of it and isn't listed in the docs it must be a private class so even if I did dig into it and figure out how to keep the extra padding from getting added to the end it would get rejected by Apple for using private API.
I can't be sure what of the new views is intercepting the touches for the second issue but given that they are the only real differences I see between iOS 10 & 11 they seem the most likely culprits.
As I mentioned this was built before storyboards so the UI is built in xib files.
Has anyone run into issues with these new views and found a way to solve them? Or should I just rip out the whole UI and rebuild it?

UIPopoverController with UIVisualEffectView over UISplitViewController - background is not getting blurred on iPhone 6 plus

I am trying to display a popover controller over UISplitViewController.
The popover is displayed correctly. However, the visual effect view, which I have added to it, is not being displayed correctly on iPhone 6 plus (the background is not getting blurred). Here is the result which I am getting:
I have no clue how to resolve this issue.
The most similar question I was able to find is this. However, none of the solutions worked for me.
I have also tried modifying the presentation styles but it does not help as well. Setting the background for popover to clearColor also doesn't help...
I have uploaded a project to GitHub which you can find here.
Thanks in advance for any help or suggestions!
This is the normal behaviour, if you want to blur the background while the popup is presented, you should use UIPresentationController and it's delegates.
You can find the documentation here and a top notch tutorial here.
Here you will find an example of what you're trying to achieve.

Xcode5: Move child tabBarController to the top

This question has been asked many times before but since it has been a while since, maybe things have improved for xCode5 and iOS7. I don't know so I am asking it again:
I have a Tab Bar Controller whose tabs I want to appear on top as opposed to at the bottom. Is there a way to do this with the present iOS IDE tools? (i.e. Xcode5, iOS7, etc.)

UIKit - Place own statusbar above UINavigationController

My app is in landscape and uses a UINavigationController as its RootViewController. My goal with it is:
Disable the normal iOS StatusBar ( I know how to do that and already did it )
Have a semi-transparent StatusBar (a view) above the UINavigationBar, so that I can show custom information on it
Parts of the content of my main view must be visible underneath my custom StatusBar (exactly like it works with the normal UIStatusBar, just that I don't want the clock and battery and want to show my own information on it)
How can I best achieve this?
A quick search on GitHub gave me multiple libraries that offer the exact functionality you are looking for.
MTStatusBarOverlay
KGStatusBar
CWStatusBarNotification
FDStatusBarNotifierView
BWStatusBarOverlay
WTStatusBar
TWStatus
Try them out, test them and see which one is best for you.
If none of them are good enough, you should get an idea on how to achieve this functionality using the source code those libraries provide.
iOS 7 Human Interface Design, page 143 says:
Don’t create a custom status bar. Users depend on the consistency of
the system-provided status bar. Although you might hide the status bar
in your app, it’s not appropriate to create custom UI that takes its
place.
iOS Human Interface Guidelines

Resources