Wednesday, December 4, 2013

CCRectMake four parameters, there is what I did before the change two reactions

The latter two can change the size, but how to change the front did not change in the top left corner of the Internet was said to be a starting point, but why no matter what I changed it a few results are unchanged
Reply:
Stepping down
Reply:
UIButton * backbtn = [UIButton buttonWithType: UIButtonTypeCustom];
backbtn.frame = CGRectMake (0, 0, 60, 32);

Four parameters x, y, w, h
Reply:
CGRectMake (x coordinate, y coordinate, width, height)
Reply:
Look at the recommendations http://www.cocoachina.com/downloads/ebook/2012/0411/4147.html, this booklet. CGRectMake, will generate a View of the location, including the starting point coordinates (x, y) and border size (width, height). On ios coordinates from the upper left corner as the origin, x-axis to the left, y axis under.

No comments:

Post a Comment