i have two .xib file. First xib name is viewcontroller.xib , it contain scrollview using page control.
second xib name is registration.xib , it contain labels textfield and submit button .
my question is that iwant to add the whole views of registration.xib file into the scrollview of viewcontroller.xib file .
what can i do ???????????
//In viewdidload of viewcontroller.m
regiViewController=[[RegistrationViewController alloc]init];
regiViewController.view11.translatesAutoresizingMaskIntoConstraints=NO;
UIView *containerView=[[UIView alloc]initWithFrame:CGRectMake(self.scrollView.frame.size.width * i, 0, self.scrollView.frame.size.width, self.scrollView.frame.size.height)];
containerView.backgroundColor = [UIColor purpleColor];
[containerView addSubview:regiViewController.view11];
[scrollView addSubview:containerView];
In registration.m
- (void)setup {
[[NSBundle mainBundle] loadNibNamed:@"RegistrationViewController" owner:self options:nil];
[view11 addSubview:self.view];
self.view11.translatesAutoresizingMaskIntoConstraints=NO;
}