I\'m having a problem when using addSubview.
Example code:
ParentView *myParentView = [[ParentView alloc] initWithNibName:@\"ParentView \" bundle:nil
that's all you need
childView.frame = parentView.bounds