Friday, June 3, 2011

CGRectMake


Function name:- CGRectMake
===========
Declaration
===========
CGRectMake ( CGFloat x, CGFloat y, CGFloat width, CGFloat height );
===========
iOS (2.0 and later)
============
Returns a rectangle with the specified coordinate and size values.
x: The x-coordinate of the rectangle’s origin point.
y: The y-coordinate of the rectangle’s origin point.

width: The width of the rectangle.

height:The height of the rectangle.
Return Value

A rectangle with the specified location and dimensions.
Declaration:- CGGeometry.h
Reference :- CGGeometry Reference
Related API:- CGPointMake , CGSize
Related Documents:- MakeQuartz 2D ProgrammingGuide
Sample Code:-