uiview

In iOS, what UIView property or properties can I manipulate in code to move a view to a new location within its parent?

Tagged:

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    On iOS, a control's Frame determines its position on its parent view. So you can change that property to move this control. You can also add some animations like:

    UIView.Animate(3, () =>
    {
        CGRect frame = MyView.Frame;
        frame.X += 100;
        frame.Y += 100;
        MyView.Frame = frame;
    });
    
Sign In or Register to comment.