Forum Xamarin.iOS

iOS 7

JooFerreira.2190JooFerreira.2190 PTUniversity ✭✭

Hi,

I want to make an application with tabs like these http://d.pr/i/5t5g

The control used for this is the right UISegmentedControl?

What is more performance to do this? I have to create 3 views? To switch between them use the NavigationControl?

Is there any tutorial, with a similar solution?

Best regards

Posts

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @JooFerreira,

    Yep, that is the UISegmentedControl. There is a tutorial on using it here.

  • JooFerreira.2190JooFerreira.2190 PTUniversity ✭✭

    Thank you @John

    Just do not understand how I define what appears within each segment. How do I create the views and change the information visible, depending on the selected button?

    Best regards

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @JooFerreira,

    Well that is up to you, but a simple way would be to have 3 separate views, and toggle the Hidden property of the corresponding view when the segmented controls ValueChanged event fires.

    Another options is to use an animation to transition between the views with UIView.Animate(fromView, toView, ....).

  • JooFerreira.2190JooFerreira.2190 PTUniversity ✭✭

    @John,

    Thanks, done ;)

Sign In or Register to comment.