Universal LaunchScreen Edit Traits using VS 2017 on Mac

DuITAppsDuITApps USMember ✭✭

How do I center a UILabel in the LaunchScreen for both iPad 12.9 and iPhone Screens? I tried all the options and also tried Edit Traits feature but could not succeed. Are there any examples of the Edit Traits feature for VS 2017 on Mac? Appreciate any help.

Instead of an UIImage, my plan is to display a static text using UILable in the center of the LaunchScreen. Thank you!

Answers

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    Moving to Xamarin.iOS forum.

    @DuITApps,

    The easiest way is to set constraints in iOS Designer. Basically the steps are:

    1. Add a UILabel to the LaunchScreen.storyboard
    2. Select the "Constraint Editing Mode" in the upper right of the iOS Designer canvas.
    3. Select the UILabel
    4. Click and drag from the small box in the center of the UILabel to the Center guides (do once each for horizontal and vertical center guides)

    Here is a screencast showing how:
    https://screencast.com/t/VmN1f6lb

Sign In or Register to comment.