title: How to add a custom view to JSQMessagesViewController
body: <p>How can i add a custom view on the top of collection view? 
  I  want to design a custom view using Xcode user interface 
  I have added my view in storyBoard view controller but the collection view covers it
  so I add a custom view in viewDidLoad</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
      [self addViewOnTop];
      }
  }
  -(void)addViewOnTop {
  
      UIView *selectableView = [[UIView alloc]initWithFrame:CGRectMake(0, 60, self.view.bounds.size.width, 40)];
      selectableView.backgroundColor = [UIColor redColor];
      UILabel *randomViewLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 10, 100, 16)];
      randomViewLabel.text = @"RandomView";
      [selectableView addSubview:randomViewLabel];
      [self.view addSubview:selectableView];
  }
  </code></pre>
  
  <p>this code runs successfully but how can I load a view using Xcode interface builder or load a .XIB file</p>
  
  <p>now I do this </p>
  
  <pre><code>@implementation chatViewController
  
  - (void)viewDidLoad {
      [super viewDidLoad];
      [SVProgressHUD dismiss];
      self.collectionView.collectionViewLayout.sectionInset = UIEdgeInsetsMake(70, 0, 0, 0);
      self.collectionView.dataSource = self;
      self.collectionView.delegate= self;
      messages = [NSMutableArray array];
      [self addMessages];
      self.collectionView.collectionViewLayout.incomingAvatarViewSize = CGSizeZero;
      self.collectionView.collectionViewLayout.outgoingAvatarViewSize = CGSizeZero;
      self.topContentAdditionalInset = 70.0f;
      UITapGestureRecognizer* tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleCollectionTapRecognizer:)];
      [self.collectionView addGestureRecognizer:tapRecognizer];
      self.collectionView.semanticContentAttribute = UISemanticContentAttributeForceLeftToRight;
      [self addViewOnTop];
  }
  -(void)addViewOnTop {
      commentsheader *test = [[commentsheader alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 70)];
      [self.view addSubview:test];
  
  }
  </code></pre>
  
  <p>but it didn't help</p>