views:

397

answers:

1

Hello all I was wondering if there was a way to create some sort of frame for the UIViewcontroller

for instance like so ( i know it doesn't work) :

  UIViewController *example = [[UIViewController alloc]  
initWithFrame:CGRectMake(0, 0, 320 , 55)];

a bit like the UIWebview

 UIWebView *aWebView = [[UIWebView alloc] 
initWithFrame:CGRectMake(0, 0, 320 , 100)];

if anyone has an idea I'd really like to know.

A: 

You should set controller's view frame instead:

example.view.frame = CGRectMake()
Vladimir