title: How to navigate using collectionView in UIViewController- While selecting cell it is going to random view controller not defined one
body: <p><strong>Hello</strong>, </p>
  
  <p>I made this app using <code>UITableViewController</code> later by using buttons in <code>UIViewController</code>.</p>
  
  <p>In <code>UIViewController</code><em>(using buttons)</em>-the resolution either suits for <code>iphone4s</code> and below or <code>iphone 5</code> and above..</p>
  
  <p><img src="https://i.stack.imgur.com/v2SHX.png" alt="enter image description here"></p>
  
  <p>To Overcome from this resolution issue I'm making this by inheriting collection view in Existing <code>UIViewController</code>...(And I embedded this to <code>UINavigationController</code> to navigate)</p>
  
  <p>Everything works fine till displaying...<strong>Problem occurs when I</strong> <strong>select any cell</strong>, It then goes to random view controller.</p>
  
  <p>I used this method</p>
  
  <pre><code>-(void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath
  {
  int cellNum = [indexPath row]+1;
  switch (cellNum) {
      case 1:
      {
          [self performSegueWithIdentifier:@"segueNew" sender:nil];
      }
          break;
     //---So On----
  
     }
  </code></pre>
  
  <p>With tableview I did the similar thing, It worked then..</p>
  
  <p>If you need any further information then please leave a comment.</p>
  
  <p>I really googled a lot about this but didn't find any solution. 
  So, Please help me on this or If you find any link please share.</p>
  
  <p><strong>Thank you.</strong></p>