title: UICollectionView inside UITableView incorrect rows in sections
body: <p>I have a <code>UITableView</code> in the Groups (Sectioned) mode. Each section of the table contains about 5 cells.
  Each cell of the table consists of one <code>UILabel</code> and one <code>UICollectionView</code>. <code>UICollectionView</code> will contain a set of simple items with a horizontal scrolling.</p>
  
  <p><strong>So, I have something like a Grid View and it looks in Storyboard like:</strong>
  <img src="https://i.stack.imgur.com/9zrqX.png" alt="enter image description here"></p>
  
  <p><strong>In the Simulator it looks like:</strong>
  <img src="https://i.stack.imgur.com/mi0S5.png" alt="enter image description here"></p>
  
  <p><strong>The problems that I can't understand:</strong></p>
  
  <p>When I scroll any of the rows horizontally - some another row (that may be in the same or some another section) can synchronously scrolls with the first one, looks like they have some connection with each other or it's the same <code>UICollectionView</code>!</p>
  
  <p>How can I use different <code>UICollectionView</code> in each <code>UITableViewCell</code> or break that "strange connection"?</p>
  
  <p><strong>My code (Header):</strong></p>
  
  <pre><code>@interface ipAthleteHistoryTableViewController : UIViewController &lt;UICollectionViewDataSource, UITableViewDataSource, UITableViewDelegate&gt;
  
  @property (weak, nonatomic) IBOutlet UITextField *datesRangeFromPeer;
  @property (weak, nonatomic) IBOutlet UITextField *datesRangeToPeer;
  
  @property (weak, nonatomic) IBOutlet UITableView *history;
  
  - (IBAction)datesRangeFromPeerEditingExited:(id)sender;
  - (IBAction)datesRangeFromPeerSet:(id)sender;
  
  - (IBAction)datesRangeToPeerEditingExited:(id)sender;
  - (IBAction)datesRangeToPeerSet:(id)sender;
  
  - (IBAction)todaySpeedButtonPressed:(id)sender;
  - (IBAction)weekSpeedButtonPressed:(id)sender;
  - (IBAction)monthSpeedButtonPressed:(id)sender;
  - (IBAction)quarterSpeedButtonPressed:(id)sender;
  
  @end
  </code></pre>
  
  <p><strong>Implementation:</strong></p>
  
  <pre><code>- (void)viewDidLoad
  {
      _dumbNumberOfItems = 24;
      _dumbNumberOfItems2 = 5;
  
      [super viewDidLoad];
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      return _dumbNumberOfItems2;
  }
  
  - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
  {
      return _dumbNumberOfItems;
  }
  
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
      return 5;
  }
  
  - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
  {
      return [NSString stringWithFormat:@"12.09.2014:%ld", (long)section];
  }
  
  - (UITableView *)findParentTableView:(UITableViewCell *)tableCellView
  {
      return (UITableView *)[ipNavigationHelper findParentViewOfClass:[UITableView class]
                                                      ofChildView:tableCellView];
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {       
      ipAthleteHistoryTableCell *cell = [tableView dequeueReusableCellWithIdentifier:athleteHistoryChart_ExcerciseTrialsCell forIndexPath:indexPath];
  
      [[cell excerciseTitle] setText:[NSString stringWithFormat:@"Title %li:%li; %ld", [indexPath section], (long)[indexPath row], (long)[cell excerciseTrials]]];
      [[cell excerciseTrials] reloadData];
  
      return cell;
  }
  
  - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
  {
      ipAthleteHistoryExcerciseTrialCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:athleteHistoryChart_TrialCell
                                                                                       forIndexPath:indexPath];
      ipAthleteHistoryTableCell *upCell = [self findParentTableCell:collectionView];
  
      [[cell actualTrial] setText:[ipNumeralsConverter convertToLatinArabNumber:[indexPath row]]];
      [[cell actualRepeats] setText:[NSString stringWithFormat:@"%li", [[[self findParentTableView:upCell] indexPathForCell:upCell] section]]];
      [[cell targetRepeats] setText:[NSString stringWithFormat:@"%li", [[[self findParentTableView:upCell] indexPathForCell:upCell] row]]];
      [[cell workWeight] setText:[NSString stringWithFormat:@"%li", [indexPath row]*10]];
  
      return cell;
  }
  </code></pre>
  
  <p>All the initial work (like IDs registration, cells prototyping, etc.) is done using Storyboard.</p>