TableviewCell accesory view moves when the height of row is increased(expanded)
<p>I use a animation to incrementing the height of a row, when user tap the row and I use a custom accessory view, but when I increase the height of the row the accessory view moves down on it y axis y aproximately half of the row, this is annoying. How can I mantain the accesory view on top of the row? when I doing the animation of increasing the height of row and turn the accessory 90 degree. attaching code and image</p>

<p>This code animates the tableview</p>

<pre><code>         self.flag = !self.flag;

        [tableView beginUpdates];
        [tableView reloadRowsAtIndexPaths:@[indexPath]
                              withRowAnimation:UITableViewRowAnimationAutomatic];

        [tableView endUpdates];
</code></pre>

<p>This code increasing the row height</p>

<pre><code>-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:    (NSIndexPath *)indexPath{

    if (indexPath.section == 1 ){

    if (indexPath.row == 0) {

        return YES == self.flag ? 70 : 44;

    }else if (indexPath.row == 1) {

        return YES == self.flag ? 70 : 44;

    }
    }
</code></pre>

<p>And this code turns the custom accessory view 90 degrees</p>

<pre><code> self.accesoryButton.transform = CGAffineTransformMakeRotation(M_PI / 2.0f);
</code></pre>

<p><a href="https://i.stack.imgur.com/pChhH.png" rel="nofollow noreferrer">This image shows how the accessory moves down on y axis</a></p>