最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

swift - Tab Bar items on iPadOS >= 18.0 cannot be disabled - Stack Overflow

programmeradmin2浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论