iPad Size Classes

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

  1. erdinc27 macrumors regular

    Joined:
    Jul 20, 2011
    #1
    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

    PhoneyDeveloper

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

Share This Page