Tuesday, 15 September 2015

ios - Error with CGRect -



ios - Error with CGRect -

my app working properly, when analyzeing x-code show me this

what's mean?

can help?

cgrect rect = cgrectzero; prepare it.

"argument contains uninitialised data" means argument in case rect might passed uninitialised method argument in uiimageview *splashimageview = [[uiimageview alloc] initwithframe:rect]. happens if first if statement fails else triggered not set frame.

you need either set default value outside if-else shown above or set rect values in else block well.

you should know primitives/structures have no initial value default , values garbage. simple illustration of same error be:

int i; //at point may have value = i+1;

ios cgrect

No comments:

Post a Comment