admin管理员组文章数量:1387434
My app is suppose to disable (grey) certain Tab Bar items depending on setup. This is done using the following code.
self.tabBar.items?[1].isEnabled = false # used in TabBarController
self.tabBarController?.tabBar.items?[1].isEnabled = false # used in any other Controller
All works fine, but only on iOS (all versions).
On iPadOS >= 18.0 (the Tab Bar moved to the top of the screen) the Tab Bar item remains enabled and selectable.
This seems (?!) to be a bug.
If so, is there any way to circumnavigate this behaviour?
本文标签: swiftTab Bar items on iPadOS gt 180 cannot be disabledStack Overflow
版权声明:本文标题:swift - Tab Bar items on iPadOS >= 18.0 cannot be disabled - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744498391a2609171.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论