I've worked once on an iOS7 app with a lower Horizontal scrollView with custom buttons that let me choose some options. That worked fine, but now while we are giving iOS 8 support, the scroll view appears blank.
iOS 7:
http://postimg.org/image/djv26la4f/
iOS 8:
http://postimg.org/image/4asvwh18f/
I've been trying some possible fixings but I'm stuck in this. Everything is being done programatically, no autolayout.
Do you have any idea of which could be the problem?
Thanks in advance.
I finally fixed it. It was a problem with the frames as hasan83 said.
After hours of debugging I noticed that a group of frames was with wrong frames despite of using the same code. I fixed it by making distiction between iOS versions.
Thank you for your help!
Related
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.
I have designed user interface in storyboard in Xcode 7 its working fine when i updated Xcode 8.1 and opened the storyboard the result is below.
I don't know what apple actually doing with this, When ever new update came i struggling on this kind of issue. Can some one guide me how to resolve this?
Thanks
Click on the red button that shows the problems, and see what's wrong, and fix them. Very often you just fix the frames of your views. And then you tap on the various device sizes and check if your layout works with every size.
They did make changes with new xcode 8.0, but I believe its easier then ever.
The concept is same behind only few changes.
Like before you need to do update frames, but now they make it easy so you can view a live preview of your layout without going into preview in show assistant editor.
Just click on device button and it automatically updates frames and shows you your layout.
For more information see: A Beginner’s Guide to Auto Layout with Xcode 8
As of now my iPhone works on iPad as it should except my problem is that some images partially show as if they got zoomed in on. So I tried turning universal devices on but that's just as bad since everything shifts into different locations.
I am using Auto Layout and this is an old app I'm wanting to update.
Missing constraints was the cause of the problem!
It seems like that missing constraints is the cause of the problem! You might want to redo the layout and constraints.
I am using PSCollectionView, which is a Pinterest-style waterflow collection view. It is working very well with iOS 7 on Xcode 5&6 and in iOS 8 with Xcode 6, but in iOS 8 with Xcode 6 with TabBarController as the root controller, the view is not scrollable and cells are not selectable, just like the view is locked, even though it can load the data as normal.
I am wondering what may be the general reason for the collection view that is not scrollable and its cells are not selectable?
This class has already been 2-3 years, there may be some incompatibility within itself. For walking around, do you know there is any other Pinterest-style waterflow collection view that is working well now with iOS 8 with Xcode 6 that I can use instead?
Any ideas are appreciated! Thank you in advance!
After days trying to figure out this issue, finally got the solution.
It turns out it is nothing to do with the TabBar Controller nor iOS 8, it is the new setting of constraint of Xcode 6. I have to tick the "Installed" even though I already check "xC hR Installed" in the Attribute Inspector of the view used to show PSCollectionView. Now everything is working.
PS: but still don't know why I have to tick both of them to make it work. Any ideas?
My app is suddenly unable to correctly display UIDatePickers. I'm using storyboards. The Datepickers are set to just display the date. They are cutting off the month, and also not even showing the days. There's a big space in the middle. I have tried cleaning the project, resetting the simulator, checking localization settings, and checking to see if dynamic type size was set. I'm using Xcode 5.1.1 but the same thing happens in the beta of Xcode 6. Any suggestions would be appreciated.
Ok, I figured it out. This happened as a result of trying to use UIAppearance on a tableView background color. This has nothing to do with tableViews on the face of it, but Apple must be using a tableView privately for the PickerViews. So, my attempt to set a UIAppearance via a category on a tableView background color seems to be doing something unexpected. Lesson learned. Don't try to use UIAppearance where they are not officially supported.
I had this exact same issue, and it was related to duplicate constraints in my storyboard. I'd been implementing iPhone 6 widths and inadvertently ended up with both width = 320 and width >= 320. Removing that width = 320 fixed it instantly.