我只是从一种观点推论另一种观点。
在此代码之后,推送的视图将显示为透明。
我之前已经用过很多次了。就这么简单。
settings *set = [[settings alloc] initWithNibName:@"settings" bundle:nil];
set.view.backgroundColor = [ [UIColor blueColor] colorWithAlphaComponent:0.3f];
[self.navigationController pushViewController:set animated:YES ];
但现在有了最新的ios
and xcode
,
推送视图不再变得透明。
因此,如果有人对此有任何其他解决方案,请告诉我。
我已经提到了很多关于此的帖子,例如
- http://blog.typpz.com/2013/12/09/ios-sdk-create-a-pop-up-window/ http://blog.typpz.com/2013/12/09/ios-sdk-create-a-pop-up-window/
- 在 UIView 上设置 alpha 会在其子视图上设置 alpha,这是不应该发生的 https://stackoverflow.com/questions/18681901/setting-alpha-on-uiview-sets-the-alpha-on-its-subviews-which-should-not-happen
- 自定义 UI:iOS Objective-C 中的弹出窗口 https://stackoverflow.com/questions/41298100/custom-ui-popup-in-ios-objective-c
- 在 UIView 上设置 alpha 会在其子视图上设置 alpha,这是不应该发生的 https://stackoverflow.com/questions/18681901/setting-alpha-on-uiview-sets-the-alpha-on-its-subviews-which-should-not-happen
and asked to many other members , but could not get the solution for this issue .
你应该展示你的view controller
代替push
,因为使用推送,您无法实现显示先前视图控制器的透明度!
您可以调试视图层次结构以仅检查顶视图和上一个视图之间有多少视图。
To debug view hierarchy you can tap Debug View Hierarchy
button from debug area!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)