How to use iOS ConvertRect

Updated on technology 2024-05-04
6 answers
  1. Anonymous users2024-02-09

    uiview's [convertrect: toview:] method.

    cgrect rr = [cell ;

    Meaning: convert the frame of the subview (jingdubtn) of the uitableviewcell into the view of the controller, where the controller view contains a uitableview, and uitableview has multiple rows of uitableviecell

  2. Anonymous users2024-02-08

    No need to install drivers or software, files can be printed by e-mail to the printer, support PDF, Microsoft Office, web page, email and **, simple and easy-to-use permission settings: high and low security levels can be customized, with HP tabbloid, easy to print daily news.

  3. Anonymous users2024-02-07

    The frame in UIview gets the coordinates relative to the parentView where it is located, while bounds refers to the coordinates of UIview itself.

    Assuming a is a screen):

    The frame coordinates of view b refer to the coordinates relative to view a, i.e., (50,50), and the coordinates of its bounds are (0,0).

    The frame coordinates of view c refer to the coordinates relative to view b, i.e., (50, 50).However, the bounds coordinate is still (0,0), but its absolute coordinate is (100,100).

    You can use the following functions to complete the conversion of the coordinate system between different views, as shown in the following to complete the conversion of the current view to the parentview coordinates (a matrix transformation).

    cgrect parentrect = [currentview ;

  4. Anonymous users2024-02-06

    uiview's [convertrect: toview:] method uses cgrect rr = [cell;

    Meaning: convert the frame of the subview (jingdubtn) of the uitableviewcell into the view of the controller, where the controller view contains a uitableview, and uitableview has multiple rows of uitableviecell

  5. Anonymous users2024-02-05

    The position of the cell on the screen, the cell is created by itself, and the position is set by itself.

  6. Anonymous users2024-02-04

    The position of the cell is calculated first, and then converted to the position in the view.

    cgrect rectintableview = [tableview rectforrowatindexpath:indexpath];

    cgrect rectinsuperview = [tableview convertrect:rectintableview toview:[tableview superview]];

    nslog(@"___",nsstringfromcgrect(rectinsuperview));

    This is what I just tested for you, absolutely correct. [tableview superview] can also be written.

Related questions
10 answers2024-05-04

Trick Eat too much every day, preferably what you like, breakfast at least 4 steamed buns and 500ml of milk. After eating, I watched TV for 1 hour and then went to bed, slept until 11:30, got up for lunch, also ate too much meat, high-fat food, and rested after eating, and continued to sleep until 5 o'clock in the afternoon, and went out for a walk for 30 minutes. Then continue to eat dinner, eat dinner before 10 and eat something (a small amount) and go to bed.

3 answers2024-05-04

SSH Secure Shell how to upload files

FTP (File Transfer Protocol) is a protocol used to transfer files on the Internet (File Transfer Protocol). It is a file transfer standard that allows us to transfer files to and from each other on the Internet, and specifies how files are transferred on the Internet. In other words, through the FTP protocol, we can upload or download files with FTP servers on the Internet. >>>More

8 answers2024-05-04

1)1/6=1/(2x3)=1/2-1/31/12=1/(3x4)=1/3-1/4

2) A and b are opposite to each other, then a+b=0; x and y are the reciprocal of each other, then xy=1; If the absolute value of c is equal to 2, then c = 2 >>>More

12 answers2024-05-04

Just such a question!

I'm going to copy it! >>>More

29 answers2024-05-04

To 600 member growth value, use mobile phone PHS to open a member to grow 5 points per day, that is, 120 days, use Q coins to open a member, 10 points, member growth value, that is, 60 days, use Tenpay to open a member, 12 points per day, that is, 50 days, one-time opening a one-year member, 15 points per day, 15 points, member growth value, 40 days