iOS 7 modal view makes buttons grey (disabled)

倾然丶 夕夏残阳落幕 提交于 2019-12-13 13:41:25

问题


I'm upgrading an app to iOS 7 and am running into a problem where all buttons turn to grey after I display a modal view. They're still clickable though. It only happens with modal views and not popovers.


回答1:


As @CarmeloS points out the tint color is most likely your problem. Look at UIAppearance and or another view/viewcontroller higher up in the view heirachy as I believe this is now an inherited trait. So you may have set it it elsewhere.




回答2:


Maybe it's the tintColor attribute, try setting UIView.tintColor Attribute explicitly.




回答3:


Try to use tintAdjustmentMode = UIViewTintAdjustmentModeNormal for elements with tint color.



来源:https://stackoverflow.com/questions/19244991/ios-7-modal-view-makes-buttons-grey-disabled

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