ios - Only changing X axis value -


im aware can change position of image view this

myimageview.frame = cgrectmake(99, 34, 32, 32); 

but how change x value leave rest are? realize simple question because don't know how word search im having difficulty finding solution. thanks

//capture frame cgrect thisrect = myimageview.frame;  //modify required frame parameter (.origin.x/y, .size.width/height) thisrect.origin.x = 0;  //set modified frame object [myimageview setframe:thisrect]; 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -