chaosifier / TabView

TabView control for Xamarin.Forms.
MIT License
124 stars 32 forks source link

[IOS] Crash : NSInternalInconsistencyException Reason: No view controller managing visible view #17

Closed pumpkintechlabs closed 4 years ago

pumpkintechlabs commented 6 years ago

Happens only when tabs have long text that wraps around on a tab. and you click on tabs to navigate between them.

` var tabs = new List(){

            new TabItem("Tab with a very long text 1", new Label{Text = "Tab 1", HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Color.Red}),
            new TabItem("Tab with a very long text 2", new Label{Text = "Tab 2", HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Color.Green}),
            new TabItem("Tab with a very long text 3", new Label{Text = "Tab 3", HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Color.Blue}),
        }; 

`

CleverSoftwarePoland commented 5 years ago

I have the same problem. Did you find any solution to that problem?

pantelisGeo90 commented 5 years ago

I can also confirm of this issue. Case scenario: If one of your tap-titles are longer that the others (i.e. the text breaks to the next line) and the user taps to navigate to the according tab, the app crashes.

ios-crash

NaiShengYu commented 4 years ago

I have the same problem.when tabs have long text

felipechavez commented 4 years ago

I have the same problem. Did you find any solution to that problem?

chaosifier commented 4 years ago

With the new version, the tab header will be scrollable when the content width exceeds available width. This should fix the issue.