iPad Size Classes

Discussion in 'iOS Programming' started by erdinc27, Apr 18, 2017.

  1. erdinc27 macrumors regular

    Jul 20, 2011
    I have a universal app. I try to change the frames of two views when orientation changed. They stay next to each other in landscape and then one is up another down when the orientation is changed to portrait. I achieved it in iPhone but in iPad, it doesn' t change. Is it because iPad is wRegular and hRegular in both orientations? And if not how can i manage it in portrait orientation ?
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    Look at viewWillTransitionToSize or willTransitionToTraitCollection. These are called for rotations and you can animate your change along with the rotation.

Share This Page