iOS ShellItemRenderer accesses TabBar.Items to enable / disable items. If there are more shell sections than maxTabs, it could lead to an index out of range exception because they are aggregated in a single "show more" item.
<!-- Your Pages -->
<ShellItem>
<ShellSection Title="Browse" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate local:ItemsPage}" />
</ShellSection>
<ShellSection Title="About" Icon="tab_about.png">
<ShellContent ContentTemplate="{DataTemplate local:AboutPage}" />
</ShellSection>
<ShellSection Title="Browse" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate local:ItemsPage}" />
</ShellSection>
<ShellSection Title="About" Icon="tab_about.png">
<ShellContent ContentTemplate="{DataTemplate local:AboutPage}" />
</ShellSection>
<ShellSection Title="Browse" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate local:ItemsPage}" />
</ShellSection>
<ShellSection Title="About" Icon="tab_about.png">
<ShellContent ContentTemplate="{DataTemplate local:AboutPage}" />
</ShellSection>
<ShellSection Title="Browse" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate local:ItemsPage}" />
</ShellSection>
<ShellSection Title="About" Icon="tab_about.png" IsEnabled="False">
<ShellContent ContentTemplate="{DataTemplate local:AboutPage}" />
</ShellSection>
</ShellItem>
No exception. You might also have to fiddle with the UIMoreNavigationController
to disable particular items there.
Exception.
@Dresel Can you please attach a small project that demonstrates this issue? Thanks!
As mentioned, crashes here.
This still happens, so @samhouts can I work on this issue?
@pictos Yes!!
Most helpful comment
@pictos Yes!!