title: initWithFrame is filling the screen instead of creating a frame of the size I want
body: <p>I'm new to Cocoa development and suspect that this is a noob issue.</p>
  
  <p>I'm creating a simple background canvas with a bespoke UIView. I was expecting that I would be able to create this canvas to be slightly indented down from the main view so that I could add a toolbar at a later date. However, when I use initWithFrame (and any other init for that matter), the canvas is always created to be the size of the full screen rather than slightly smaller than the full screen. Even if I completely override the values for CGRect it doesn't make a difference. I've set a touchesBegan event and set the background colour to green to be able to determine success but all I get are a completely green screen and a touch event that works everywhere. </p>
  
  <p>Please help - this is driving me mad and I can't find the answer anywhere on the web.</p>
  
  <p>The relevant code is as follows (there actually isn't much more code than this in the whole app so far):</p>
  
  <p>AppDelegate</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  
  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  self.objMainViewController = [[MainViewController alloc] init];
  self.window.rootViewController = self.objMainViewController;
  [self.window makeKeyAndVisible];
  
  return YES;
  
  }
  </code></pre>
  
  <p>MainViewController.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "viewCanvas.h"
  
  @interface MainViewController : UIViewController
  
  @property (strong, nonatomic) viewCanvas *objViewCanvas;
  
  -(id)init;
  
  @end
  </code></pre>
  
  <p>MainViewController.m</p>
  
  <pre><code>#import "MainViewController.h"
  #import "viewCanvas.h"
  
  @implementation MainViewController
  
  @synthesize objViewCanvas;
  
  -(id)init
  {
  
      if (self = [super init]) {
          CGRect frame = CGRectMake(100, 100, 100, 100);
          objViewCanvas = [[viewCanvas alloc] initWithFrame:frame];     
      }
      return self;
  }
  
  - (void)loadView {
  
     self.view = objViewCanvas;
  
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
  }
  </code></pre>
  
  <p>viewCanvas.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "viewCanvas.h"
  
  @interface viewCanvas : UIView {
  
  }
  
  //Init
  - (id) initWithFrame:(CGRect)frame;
  
  //Events
  -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
  
  @end
  </code></pre>
  
  <p>viewCanvas.m</p>
  
  <pre><code>#import "viewCanvas.h"
  
  @implementation viewCanvas
  
  //Standard inits
  - (id) initWithFrame:(CGRect)frame{   
  
  self = [super initWithFrame:frame];
  [self setBackgroundColor:[UIColor greenColor]];
  return self;
  
  }
  
  - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
  
      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Touches Began Canvas" message:@"Canvas Touches Began" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles: nil]; 
      [alert show];
  
  }
  
  @end
  </code></pre>