I want to add a UIViewController on my current UIView on a button click event. But I am not able to set the frame. How can I set the y-axis of view. I also checked out iPhone: How to set UIViewController frame? but I can't solve it.
GalleryViewController *objgallery = [[GalleryViewController
alloc]initWithNibName:@"GalleryViewController" bundle:[NSBundle mainBundle]];
objgallery.view.frame = CGRectMake(0, 88, 320, 372);
[self presentModalViewController:objgallery animated:YES];