animated:YES should be aligned in a separate line:
    [table scrollToRowAtIndexPath:pathOfTheCell
                               atScrollPosition:UITableViewScrollPositionBottom
                                           animated:YES];