如何在objective-c中仅更改UIImageView的宽度?目前我正在做这件事:
imageview.frame = GCRectMake(x,y,width,height);
但是当我改变宽度时,它似乎只是改变了位置,而不是改变了大小。
发布于 2010-04-02 01:35:50
试试这个:
CGRect frame = [imageView frame];
frame.size.width = newWidth;
[imageView setFrame:frame];
https://stackoverflow.com/questions/2564527
复制