title: How to set UICollectionView inside UIView
body: <p>I am trying to add <code>UICollectionViewControllers</code> inside <code>UIView</code> class.</p>
  
  <p>I cant add the controls.</p>
  
  <pre><code>CGRect viewframes=CGRectMake(0,400,self.view.bounds.size.width, 
  self.view.bounds.size.height/2);
  
  self.button=[[view2 alloc]initWithFrame:viewframes];   
  self.button.backgroundColor=[UIColor grayColor]; 
  [self.view addSubview:self.button]; 
  </code></pre>