iOS Build a Simple iPhone App with Swift Improving Our User Interface Finishing Up Our Layout

Nathalie Dory
Nathalie Dory
2,912 Points

I reallly hope someone can help me! Aspect Fill and Bottom Right content mode

So I have an image and there is a man on the bottom right hand corner and a beautiful view for the rest of it. What I would ideally like is for the image to aspect fill the whole background, which I've done, but the problem is when I do this the man disappears!

How can I get the image to aspect fill the area while keeping the man in the bottom right still in the image, this is driving me nuts!

The code so far is

import UIKit

class SecondViewController: UIViewController {

    @IBOutlet weak var BackgroundLoginPage: UIImageView!

    override func viewDidLoad() {
        // Do any additional setup after loading the view, typically from a nib.

    override func didReceiveMemoryWarning() {
        // Dispose of any resources that can be recreated.