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

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -