title: How do i refresh a UIView when Orientation happens?
body: <p>My code goes like this:</p>
  
  <pre><code>- (void)viewDidLoad
  {
    [self setGridView];
  }
  -(void)setGridView
  {
    CGRect frame; 
    frame .origin.x=0;
    frame.origin.y=20;
    frame.size.width=GRID_WEIGHT;
    frame.size.height=GRID_HEIGHT;
    GridView *ObjGridView=[[GridView alloc]initWithFrame:frame]; 
  
    [[NSBundle mainBundle ] loadNibNamed:@"GridView" owner:ObjGridView options:nil];
    [ObjGridView setGridViewFrame:frame];
  
    [self.view addSubview:ObjGridView.GridCellView];
    frame .origin.x+=GRID_WEIGHT;
  }
  
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
    return YES;
  }
  </code></pre>
  
  <p>This code adds a subview to a view and sets the frame</p>
  
  <p>My problem:
  1-How do i refresh my view when Orientation(landscape or portrait) happens,
  because  i set  the frame  of subview in the lanscape mode and i wants to use the sane view in my portrait view also .(basically where do i call this  -(void)setGridView delegate method)?</p>
  
  <p>2-How do i know, my subview exceeding the bound of the view,so that i can handle the subview in my setGridView method ?</p>