[App management 04-Bug correction Objective-C language]

1. We have just finished this for everyone, right?

notify

1. How does this Label display on the top,

Let's add it to the View of our controller now.

notify

Let's take a look at how this coordinate is calculated, come on, let's find a coordinate,

Should we use the frame of this View to subtract our coordinates?

Come on, let's be here, output this Frame, let's take a look

In this sentence of CGRectMake, the following

NSLog(@“%@”,lblMsg.frame);

notify

Oh, something is missing, you can’t print like this directly, what should I do?

notify

NSLog(@“%@”,NSStringFromCGRect());

notify

write this in

NSLog(@“%@”,NSStringFromCGRect(lblMsg.frame));

notify

command + R

notify

Now, here is 60, X is 60, Y is 225, no problem,

Well, when scrolling up,

notify

rolled over here,

notify

X is 60, Y is 225

Come on, let's see, where is it added now, it's added to the View of the controller, right?

notify

Our current View, isn’t it because what we use here is a TableViewController

notify

TableViewController is used, so we add this Label directly to self.view

Guess you like

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