The constraints getting changed on rotation

PareshSukhiyaPareshSukhiya USMember ✭✭
edited April 2018 in Xamarin.iOS

Hello All!
I have a cell in which i show some data
initially(in any orientation ) the data shown is proper but after rotating it after say 2-3 times the data gets disturbed a bit

You can see the data getting shifted a bit to the left side while i want the data to be shown at the right most margin
the view needed is the image which is second one
I'm using a collection view

if anyone could help then please

Best Answer

  • PareshSukhiyaPareshSukhiya US ✭✭
    Accepted Answer

    Hi, I solved the issue by removing constraints and used frame by calculating the width and height and the respective label width.
    Thanks!

Answers

  • PareshSukhiyaPareshSukhiya USMember ✭✭
    Accepted Answer

    Hi, I solved the issue by removing constraints and used frame by calculating the width and height and the respective label width.
    Thanks!

Sign In or Register to comment.