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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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