locked
The constraints getting changed on rotation RRS feed

  • Question

  • User341240 posted

    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

    Monday, April 16, 2018 6:05 AM

Answers

  • User341240 posted

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

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, September 9, 2019 10:32 AM