ios - Full Screenbackground Image in Swift -


I currently try to get a fullscreen background for my iOS project, that means the image is completely background Should spread. I currently try two things but will not work as a solution.

1)

  self.view.backgroundColor = UIColor (Pattern Image: UIImage (named: "Background. Png")!)  

It sets the background image only on the actual image size and repeats it in X and Y, it does not spread the image to full screen.

2)

Use a UIImage and make the breadth and height equal to and use the fill factor, it also does not provide the desired solution and also uses a lot of memory

Is there any other

So you always have to do it with autolay There are two ways

1) An inequality is shown in the images below with an addition of the barrier.

2) Or leading the trailing space and top, by adding space restriction below and vertical and horizontal barriers but no clear height or width barrier.

menu


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -