UIImage视图未在iOS 11中显示...如何解决? [英] UIImage view is not showing in iOS 11.....How to solve?
问题描述
我在iOS中有一个现有项目,直到 iOS 10
都可以正常工作,更新 X-Code 9
后,运行项目 iOS 10
,就可以了,但是在 iOS 11
中, UIImageview
没有显示..
I have an existing project in iOS, it was working fine with till iOS 10
,
After updating X-Code 9
, and run the project iOS 10
it is fine but in iOS 11
the UIImageview
is not showing ..
我已经尝试了很多方法,如清除派生数据,使用退出X代码重置干净的构建并重新启动系统,删除并添加image(png文件),但注意发生了.
I have already tried so many ways like clean derived data, reset clean build with quit x-code and restart system, remove and add image(png file), but noting happen.
即使我已经添加了背景色,但是该颜色也没有显示在设备和模拟器中,而是显示在情节提要中.
Even i have added the background colour but the colour is also not showing in the device and simulator but it is in the storyboard .
还有另外一件事,正在显示 UIButton
上的背景图像,但没有显示该图像.
one more thing ,,, the background image on UIButton
is showing but on the image it is not displaying.
有人找到解决方案吗?
推荐答案
通过 View层次结构
和Check Image Alpha值
友好地 Debug
.如有必要,请从您的项目中删除此行代码-
Kindly Debug
through View hierarchy
and Check Image Alpha Value
. Remove This line of code from your project if not necessary -
[super setAlpha:0];
这篇关于UIImage视图未在iOS 11中显示...如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!