Forum Xamarin.iOS

Position of Ui Elements does not get changed

YasirPashaYasirPasha PKMember
edited October 2016 in Xamarin.iOS

Hello All..!!
I have some views on controller like (Attached image1.PNG) and using auto layout and constraints to position the views and subviews.
Now the problem is when i change frame size of a view (programatically based on some calculations) the other views does not adjust there constraints accordingly (Attached Image2.PNG).
In ** Image2.PNG** The second view with green background should be right under view with whit background but it does not adjust its position as it has top space 0 to white view.


  • JF.0444JF.0444 USMember ✭✭✭

    You may need to call view.SetNeedsLayout (). What is the code you are using to change frame?

Sign In or Register to comment.