[英]Unable to move UIImageView
In an XCode iPad application, I use a storyboard with a view and an UIImageView inside, defined in the Interface Builder. 在XCode iPad应用程序中,我使用在Storyboard中带有在Interface Builder中定义的视图和UIImageView。 If I try to change the location of the UIImageView using the SetFrame command [myImageView setFrame:CgRectMake...], the image does not change position on the screen.
如果我尝试使用SetFrame命令[myImageView setFrame:CgRectMake ...]更改UIImageView的位置,则图像不会更改在屏幕上的位置。 Is the setFrame command enough ?
setFrame命令足够吗? Thanks.
谢谢。
I would go through a checklist and see that the setup is good: 我将通过一个清单,看看设置是否正确:
我不确定,但是更改位置后是否需要重绘UIImageView,因为这在编程中经常是这种情况?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.