问题
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 ..
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 .
one more thing ,,, the background image on UIButton
is showing but on the image it is not displaying.
Is any one find solution ?
回答1:
Kindly Debug
through View hierarchy
and Check Image Alpha Value
. Remove This line of code from your project if not necessary -
[super setAlpha:0];
来源:https://stackoverflow.com/questions/46441078/uiimage-view-is-not-showing-in-ios-11-how-to-solve