I am developing an app in which I am using addSubview and PresentModal to present a new view. For the first time presentModal is working fine but when I use presentModal after using addSubview, the previous screen remains on the back and PresentModal comes on half of the screen.How can I fix this issue ?
1)The red one is the view which I am presenting :
[EDIT]
myView=[[View alloc] initWithNibName:@"View" bundle:nil];
[self presentModalViewController:myView animated:YES];
2)Black one is the screen which I had added as subView:
myView1=[[View1 alloc] initWithNibName:@"View1" bundle:nil];
[self.view addSubview:myView1.view];

Check frame property in View XIB.
Seems it has different value than expected