UIView Subview Does not autoresize on orientation change
        Posted  
        
            by 
                Jason
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jason
        
        
        
        Published on 2010-08-25T05:16:50Z
        Indexed on 
            2010/12/21
            8:54 UTC
        
        
        Read the original article
        Hit count: 479
        
In my iPhone app, I have a view controller with two views (essentially, a front & back view). The front view is the main UIView, and the back view is a secondary UIView which is added as a subview using [self.view addSubview:backView] when showing the back and [backView removeFromSuperview] when hiding it. However, when the orientation changes, I have the following issue: the main UIView (frontView) rotates & all of its elements resize properly, but the secondary/subview UIView (backView) does not rotate & all of its elements do not resize properly. Does anyone have suggestions on how to make the secondary UIView autoresize properly according to the rules I have set in Interface Builder?
© Stack Overflow or respective owner