UIImage view is not showing in iOS 11…How to solve?

自闭症网瘾萝莉.ら 提交于 2019-12-13 10:21:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!