iphone - Mistake in autoResizingMask -
i have implemented small viewdidload() show picture autoresizing, doesn't work, please me , mistake in code in line 3 , 4????
imageview = [[uiimageview alloc] initwithimage:img]; imageview.frame = self.view.frame; imageview.autoresizingmask = uiviewautoresizingflexibleheight; imageview.autoresizingmask = uiviewautoresizingflexiblewidth;
i hope me?
if im not mistaken should following way:
imageview.autoresizingmask = ( uiviewautoresizingflexiblewidth | uiviewautoresizingflexibleheight );
the way it, override autoresizingmask.
Comments
Post a Comment