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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -