UI Difference in IOS 11 and Lower versions - ios

In my application while designing the UI i am facing some UI Issue.
The Top contraints I am setting in story board are coming same in IOS 11 but in versions lower to that UI is moving up. Please see the attached image
As you can see image in IOS 10 is above from the one in IOS 11.2.
How I can have the same UI in all the versions.
Contraints I have added are below:
Any help would be highly appreciated.

Adding below line in my view controller solved my problem.
edgesForExtendedLayout = UIRectEdge.init(rawValue: 0)
It appears that in iOS 10 and below my view was going under the navigation bar which made to look that view has shifted up. But it was working all fine in iOS 11. So to avoid view controller to go behind any bars added the above line which solved my problem.

Related

iOS 11 No background color for status bar in master side of splitview

I have seen a couple of issues similar to this but theirs seemed to be in the main view of their app. I have tried some of their suggestions like deselecting "Safe Area Relieve Margins" in the Size Inspector pane but none have worked. In the Detail side of my iPad app, the background color of my navigation bar stops at the status bar.
In this screenshot, I tried to use MMDrawerController to see if using something other than UISplitViewController would work but I have the same problem for both. So far the only difference between the two libraries is I haven't seen UISplitViewController work at all but with MMDrawerController, if you set openDrawerGestureModeMask to MMOpenDrawerGestureModePanningCenterView and the master view stretches a little bit then the background color renders correctly.
I saw on one of the other post that their issue was a bug for Xcode and there had been several people who already filed their bug Apple. Could this be a separate issue that Apple needs to know about as well if it is a iOS bug?
This is not an issue for iOS 9.X or 10.X, only 11.X.

Why is iOS11 beta search bar disappearing?

iOS11 beta seems to have broken my search bar.
This video - https://youtu.be/6F1mO3l61sU - shows what happens in iOS11 (on the left) and iOS 9.3 (on the right).
This seems to be partially to do with the fact that the tableview on the right is in a view controller that takes up the right half of the screen.
The search controller and tableview are built in code.
I've tried [self.mysearchcontroller.searchbar sizeToFit] and that doesn't seem to make a difference.
I found the problem. There was an issue with iOS 8 previously where we were setting this property to fix a layout issue only.
extendedLayoutIncludesOpaqueBars = true
should be
extendedLayoutIncludesOpaqueBars = false
If you have this too, either set this to 'false' or delete the line of code. We no longer support iOS 8 so just deleting this line of code fixed my problem. I suppose if you have this for the same reason you may want to dynamically set it to still support iOS 8 but also support iOS 11.

UISearchDisplayController Issue

I am trying to implement UISearchDisplayController in my existing tableview but whenever i try to search it covers all the view. Please check the below screen shot more detail idea.
I am using xCode 7 Beta and iOS9 Simulator.
Here when i start searching it covers all the screen.
I already search for this but none of the solution worked for me.
Just tried a similar test project on Xcode 7 without auto layout and it works fine for me:
What exactly does your view hierarchy look like? Perhaps the top bar on your view is preventing the search bar from moving up?

Weird space in iOS7

I just ran a demo app on iOS 7 target, this is what I get:
I'm using a storyboard and it looks well in iOS8. Constraints are correct.
I already checked e.g.
UITableView is starting with an offset in iOS 7
but the issue in this case is the whole thing, incl. status bar has the offset, no idea what this is. I played around with the layout settings of the view controller in the storyboard without any effect.
I also created a brand new (single view) project, ran it without changing anything, got the same issue. Don't know what can go wrong in a new project concerning autolayout as I can't set any constraints in the root view controller's view...
Any ideas?
Thanks in advance.
Try adding a "Default-568h#2x.png" launch screen to keep your iOS 7 device from running the app in Letterbox mode.
What Apple really wants you to do is use Auto-layout (see point 1 in the linked blog), which is what I suspect your demo app isn't doing.

ios 7 support for existing iPad app

I have existing iPad app supporting iOS 5 and 6.
Can anybody help me to list down item that I need to take care while supporting iOS 7?
One thing I noticed that in existing code ((UITableView*)self.superview) in UITableViewCell doesn't work. superview of UITableViewCell is UITableViewWrapperView that need to be fixed in existing code.
The things are:
1. Navigation bar height and view style are different
2. Status bar is transparent in iOS 7 as in iOS 6 it was opaque.
3. Small thing is about the tint color. By default it is light blue in iOS 7.
4. Button borders have been removed.
Issue's i have faced while running the app in IOS 7.
Status bar issue (view controller get overlaps 20 pixel.)
FixForStatusBarIssue
Customize alert view won't work in IOS7. (We can't customize the alert view in IOS 7.)
My Fix -> You need to customize the view exactly like u want because you can't customize alert view in IOS7.
Issues related to threads.
My Fix -> Use dispatch_queue(GCD with delay) in case of UI not responding (Presenting a view controller from background thread.)
Zbar sdk memory leaks while presenting and dismissing the SDK (more than 5 times app getting slow.)
FixForZbarMemoryLeakIssue
this are the issues i have faced. fixes i have suggested working fine for me. You just use it if you need hope it will work.
Apple's iOS 7 UI Transition guide
Read descriptions of every single element you used in your app.
And be aware of the style and position of the bars (navigation bar/tab bar/tool bar...).
iOS 7 has changed a lot in view hierarchies, you can use Reveal to make things easier.

Resources