[App management 04-Bug correction Objective-C language]
Mobile
2023-07-28 18:47:44
views: null
1. We have just finished this for everyone, right?
1. How does this Label display on the top,
Let's add it to the View of our controller now.
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);
Oh, something is missing, you can’t print like this directly, what should I do?
NSLog(@“%@”,NSStringFromCGRect());
write this in
NSLog(@“%@”,NSStringFromCGRect(lblMsg.frame));
command + R
Now, here is 60, X is 60, Y is 225, no problem,
Well, when scrolling up,
rolled over here,
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?
Our current View, isn’t it because what we use here is a TableViewController
TableViewController is used, so we add this Label directly to self.view
Origin blog.csdn.net/madoca/article/details/131913852