Limit AutoresizingMask height stretch - ios

I made this screen
Screen on iPhone 4s(9.3)
It looks fine on that device, however when i test this same screen with iPhone6(9.3) it looks like this. Since i cannot post more than 2 links, i merged the third image with the second one
Screen on iPhone 6(9.3) with the Third Image
As you can see, that gray view, doesn't fill the white space beetwen that same gray view and the first bottom button(lojas). Notice that i don't have the autoresizing height stretch on(that vertical arrow inside the blocks). If i turn that on, this happens
Third Image inside the Second Image
See that, the gray view goes over the buttons, i don't want that.
My question is, how can i solve this? Is there a way to make the gray view stop above the Lojas Buttom at the bottom? Thanks for your time!
OBS: I CANNOT use autolayout.
EDIT: Got the problem solved
I just changed the View as option in Interface Builder, changed it to 7.0 and later, so it gave me the "real appareance" of the app.

I changed the View as option inside the Interface Builder so i could see how the app really look like and set the iOS Deltas to 0, made the changes based on that.

Related

iPhone X tool bar issue at the bottom

My app works well on all device except for iPhone X.
On iPhone X the tool bar on the bottom is shown like as shown in image
But I want to show it like shown in second image
But when ever I shift the tool bar up so that it will show properly on iPhone X then it also move upwards in other devices.
How should I solve this problem.
Actually the bottom bar of my view is inside another view thats why it is not extending accordingly.
So simply putting the bottom bar outside, on the main view and adjusting the constraint simply resolve my issue.
In my case My toolbar's bottom constraint was attached to superview's bottom. Changing it to Safe Area bottom resolved the issue for me

LaunchScreen & Splash Screen

I started remodeling an app I am working on.
I wanted to change its launch screen image
So I went ahead and replaced the images that are in in LaunchScreen.xib file
The LaunchScreen.xib file launches the new image but leaves a blank white line where the status bar should be. (this white line is not part of the image)
How can I fix that ?
Double check your constraints. Or just remove all of them, just to be sure. Then stretch your UIImageView so it would take the whole size of the view and add constraints again. Should help.
To every strange ios problem, there is an even stranger solution
the solution for me was to set the constraint of the top layout guide to none other than -64...
The reason for it, besides accounting for the 20 pixels of the status bar, i also need to account for the 44 pixels of the navigation bar

Black boxes, missing or scaled images

In my iOS 8 app (Swift) I have setup a storyboard like so:
However, when I run the app I get something like the following result:
Notice how the images in top top-left and -right corners are not showing as expected. Also, sometimes the image in the top-right is not correctly scaled and has a greater height than expected. Notice how there's also a black box on the first result of the table view (this does not happen for any other results).
Both images are actually UIButtons with the image set, and have a size of 30x30 with 'view mode' set to "scale to fit".
EDIT:
Here is what it looks like with no results and the incorrectly scaled top-right image:
I resolved this issue by setting the "image" and "background" of each button to the same value (I did this in the storyboard editor, not through code). I feel like this is pretty hacky and doesn't answer cause of the issue. However, the images are displaying correctly and that was the aim of the game.

Images disappear when switching to 3.5 in iOS

I have two images that I am showing in a UIImageView, they both show up fine when they are edited on the extended storyboard and when ran in the 4in simulator. However when I switch the storyboard to the shorter 4 & 4S size the images disappear, the UIImageViews are still there however it will not display the images. The first picture is of the 4in storyboard and the second is of the 3.5in, all I did was click the resize button at the bottom of the editor to shrink it.
This sounds like a simple layout issue in IB. If you have Autolayout disabled then you need to set some struts for each of the images so that they reposition when the screen size changes. On the right side of IB in Utilities open the Size Inspector panel and set up the Autosizing as in the image below.
Notice only one strut is red, this keeps the content pinned to the bottom.

Scrollview Delay / Lag in pageControl

We are building an iPad catalog application with images. The image scrolling is very smooth (no delay) using scrollview, however the corresponding the pageControl (small dots at the bottom) take an extra 1.5 sec approximately. Please see attached screenshot.
Is there a way to minimize this lag/delay? Thank you for your help.
What I'm getting from your question is horizontal scrolling (using the Page Control) is lagging/choppy. Run your app on the simulator, and from the 'Debug' menu, click 'Color Blended Layers'. This option will highlight any transparent object in red. Optimally, everything would be green. Try making everything red green by setting its background color to the background color of its superview, if that is possible and setting the view's opaque setting to YES. Good luck. For more information: check out the the documentation.
What is happening, in your code, when you move to a new page? Are you pulling down any data, images, etc... ?
On a side note, I would look into both the ScrollView and PageControl to see how they rendered. It could be ScrollView is using Bitmap images once the views are rendered and PageControl is not.

Resources