Q:

Custom size for Modal View loaded with Form Sheet presentation

I'm trying to load a UIViewController in iPad with Form Sheet presentation.  The problem is the size of this new view, i put the size values in the IBuilder but the modal view take a fixed value. 
Also i tried to make this in prepareForSegue like this:
HelpViewController *viewController = segue.destinationViewController;
viewController.view.superview.frame = CGRectMake(0, 0, 200, 200);

But don't work, any help?  Thanks! 

A:

For iOS 8, use:
self.preferredContentSize = CGSizeMake(width, height);

I've placed this in viewDidLoad. 
Swift 3
self.preferredContentSize = CGSize(width: 100, height: 100)

A:

In Attributes inspector check Use Preferred Explicit Size

A:

EDIT
Use preferredContentSize. 
Old
You can try this for show view in center
HelpViewController * viewController = [[[HelpViewController alloc] init] autorelease];
viewController.modalPresentationStyle=UIModalPresentationFormSheet;
viewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentViewController:viewController animated:YES completion:^{
    viewController.view.superview.frame = CGRectMake(0, 0, 200, 200);
    viewController.view.superview.center = self.view.center;
}];

