Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone UIImageView在XIB中时使用哪种UIImage方法?_Iphone_Ios_Uiimageview_Uiimage_Interface Builder - Fatal编程技术网

Iphone UIImageView在XIB中时使用哪种UIImage方法?

Iphone UIImageView在XIB中时使用哪种UIImage方法?,iphone,ios,uiimageview,uiimage,interface-builder,Iphone,Ios,Uiimageview,Uiimage,Interface Builder,据我所知,XIBs中的UIImageViews没有使用+imageNamed。我还尝试了+imageWithContentsOfFile,但这也不是一个好主意 Interface Builder XIB使用哪种UIImage方法在ImageViews中加载图像?请查看下面给出的链接,它可能会对您有所帮助。很可能第三个答案会对你有所帮助 在XIB中设置图像时,应触发最后一个方法 [YOURCONTROLLER.imageToDisplay setImage:[UIImage imageN

据我所知,XIBs中的
UIImageView
s没有使用
+imageNamed
。我还尝试了
+imageWithContentsOfFile
,但这也不是一个好主意


Interface Builder XIB使用哪种UIImage方法在
ImageView
s中加载图像?

请查看下面给出的链接,它可能会对您有所帮助。很可能第三个答案会对你有所帮助

在XIB中设置图像时,应触发最后一个方法

    [YOURCONTROLLER.imageToDisplay setImage:[UIImage imageNamed:value]];

我也在想这个。我只是试图快速切换imageNamed函数,以便它能够自动加载~568h图像,但这在XIB文件中定义的图像中不起作用。它是
initWithCoder:
,处理起来非常烦人。