I am correcting my ipad autolayout and I get this black area and can't find the reason as to why this might be! I've got a scroll view, but I've already placed I think all my constraints. Could someone help me out?
Thank you!
Related
Now I'm learning on SwiftUI.
What I want to do is make window as Hexagon or circle. For putting this app with opacity on edge of the display beautifully.
But the only thing I can do is making it as square. Like many apps have been.
This is possible?
Then what should I do? Please give me some advices.
Sorry for my poor English. Thank you. Have a nice day!
Yes, you can create a borderless NSWindow and host a view with NSHostingView.
I have collectionView with images and labels. As you can see that the only "Home" image looks fine, the others cut from sides. Can someone please tell me what is the problem and teach me how can I fix that?
I've played with contentMode, but it didn't work for me.
Thank you in advance!
I have a problem in Swift with UITableViewCell background image. Let's say that it shows quite fine one iPhone5 but on iPhone 6Plus it is stretch and thus it looks bad. This is probably due to Aspect fill or something which I really couldn't manage to change and achieve what I want so would be the best if someone could poke sample code I am providing as well as image how it should look, so anyone can check it out and maybe give me some hint or tip or sample code or even fixed demo version.
So here it is:
Note that on left side there is a curve (like half a circle) around right side of icon. On bigger phones or tablet, that curve gets super stretch thus completely destroying the look.
Demo code link
Thanks all in advance for any help. I am pretty stuck with this one.
You can stretch an image while preserving the aspect ratio of a portion of that image using slicing. Xcode offers a graphical interface for doing this. The idea is that you decide what parts of the image are allowed to stretch and which aren't.
https://developer.apple.com/library/ios/recipes/xcode_help-image_catalog-1.0/chapters/SlicinganImage.html
The main problem is between switching 3.5" and 4" There are 2 pics they show exactly what my problem is.
You see at the second picture the UIImageView shrink a bit. This is not what I want. The better look is if the textView will scale down and maybe if the content is to big get scrollable.
How can i solve this? Thanks in advance.
I highly recommend you have a look at this link.
tutorial explaining autolayout.
From what i can understand from the images, you should fix the imageview's height
and edit the height of the the textview so that it have values less than of its current height
inorder to do so you can click the height constraint click the gear picture and edit it
I'm having some issues with the constraints in my app. Here is how it looks on the iPhone 4 (that's how i want it to look, and how i usually setup my interface, is this the proper approach or not?)
Now, when i switch to the iPhone 5 screen it looks like this
and as you can see, the blue dots (which is UIButtons) are not placed where i want them to be. I made my constraints rely solely on the right side of the view (since that is the one re-sizing, i found that in order for you'r views to align themselves accordingly, it doesn't help to align them to the left side). I don't really know how to fix this. I am finding this new iPhone screen to be a real pain in the arse. Any good advice on how to work with this new screen without a lot of headache would be appreciated :)
Thanks on advance
It looks to me like the are still the same distance from the right side of your view, as you said you set them to be, while the background has stretched to fit the new size. I suspect it's actually the background that isn't doing what you want it to do (keep the same aspect ratio and show more stuff on the left), or try keeping the buttons relating to left and right to stay aligned with the stretched background image.