I am engaged on an iOS software utilizing Goal-C and UITabBarController
. I’ve greater than 5 tabs, so the extra ones are positioned beneath the “Extra” tab. Nevertheless, once I click on on the “Extra” tab in iOS 18.0, the primary merchandise doesn’t present up correctly. This difficulty doesn’t happen in iOS 17 or earlier variations.
Improvement Surroundings
Steps to Reproduce
-
Create a brand new iOS venture in Xcode and set the deployment goal to iOS 17.
-
Delete the default primary storyboard and add a brand new
UITabBarController
because the preliminary view controller. -
Populate the
UITabBarController
with greater than 5 tabs in order that the extra ones seem beneath the “Extra” menu. -
Run the app on an iOS 18.0 simulator or system.
-
Navigate to the “Extra” menu within the tab bar.
Anticipated Conduct
All gadgets within the “Extra” menu ought to seem as anticipated.
Precise Conduct
The primary merchandise within the “Extra” menu doesn’t seem initially however is seen when enhancing the menu.
What I’ve Tried
-
Verified that every view controller is accurately initialized and has a title and picture.
-
Logged the contents of the
moreNavigationController
to verify that it accommodates the right view controllers. -
Examined by lowering the variety of view controllers to fewer than 5, which resolves the problem however will not be a viable resolution for the app.
-
Ensured all navigation controllers are configured constantly (e.g., translucency, bar type).
Further Notes
-
The problem solely happens when the
UITabBarController
is ready up utilizing the storyboard. When initialized and configured programmatically, the issue doesn’t happen. -
The habits is particular to iOS 18.0; every thing works as anticipated in iOS 17.
Workaround
- To quickly keep away from this difficulty, initialize and arrange the
UITabBarController
programmatically as an alternative of utilizing the storyboard.
What could possibly be inflicting the primary merchandise beneath the “Extra” tab to not present up accurately on iOS 18 when utilizing a storyboard configuration? Any insights or ideas for debugging this difficulty could be enormously appreciated!
You will discover a minimal code instance that reproduces this difficulty on my GitHub: iOS 18 UITabBarController Bug Repository.