ios - Can any one please explain what is use of CGRectZero -
i new ios. can 1 please explain use of cgrectzero
, used?
cgrectzero equals cgrectmake(0,0,0,0). it's used fast-initialize cgrect object.
for example:
cgrect frame = cgrectzero; frame.size.width = somewidth; frame.size.height = someheight; myview.frame = frame;
from apple's doc:
/* "zero" rectangle -- equivalent cgrectmake(0, 0, 0, 0). */ cg_extern const cgrect cgrectzero cg_available_starting(__mac_10_0, __iphone_2_0);
Comments
Post a Comment