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
Post a Comment