I\'m having a problem when using addSubview.
Example code:
ParentView *myParentView = [[ParentView alloc] initWithNibName:@\"ParentView \" bundle:nil
Just copy the parent view's frame to the child-view then add it. After that autoresizing will work. Actually you should only copy the size CGRectMake(0, 0, parentView.frame.size.width, parentView.frame.size.height)
childView.frame = CGRectMake(0, 0, parentView.frame.size.width, parentView.frame.size.height);
[parentView addSubview:childView];