[Autoresizing case 2 Objective-C language]

1. Autoresizing Case 2

notify

1. Then, next, let's look at the second case,

Just now we set up Autoresizing, the outer four lines are used to set the distance between the child control and the parent control, is it fixed?

notify

Then, let's show you what, the two lines inside,

notify

Inside there is a horizontal line and a vertical line,

notify

What do these two lines do?

Come on, let's take a look together,

As for this, we won’t create a new project for you anymore, I’ll drag another controller, okay,

In this case, there is no need to create a new project.

Let's tow another airdrop for everyone,

When the above controller is running later, point this arrow to a different controller, and it will be OK.

notify
notify

Come to such a View again,

notify
notify
notify

Then, I point this pointer here,

notify
notify

When you come down to look at this code, you want to run the above one, you just drag the arrow to it, and run the above one,

If you want to see this below, just drag the arrow down,

notify

Drag it below and run the following View,

notify

Now, after we have this, let's change the size first,

notify
notify

Then how do we do it, do it this way, first put a UIView in it,

notify

I can't find it, search it, UIView

notify

OK, let's change

Guess you like

Origin blog.csdn.net/madoca/article/details/132051407