objective c - Memory management in interface builder -


if put label in interface builder, , don't connect iboutlet, have memory leak? or system call dealloc itself?

no, won't have leak. without iboutlet, never directly calling retain on object. therefore thing retaining object view label subview of, because when add subview view, calls retain. when parent view dealloced, call release on of subviews, dealloc label.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -