Note that there are some explanatory texts on larger screens.

plurals
  1. POModern Era UITableView Animation
    primarykey
    data
    text
    <p>In a <code>UITableView</code> what would be the most convenient way of showing up additional information from a smooth scrolling effect?</p> <p>You might want to look at the screenshot below. The top <code>UITableViewCell</code> is a kind of "Create new stuff"-button field, and I would like a formular to show up from below this field with a smooth uniform scroll animation.</p> <p>How is this best achieved? Do I want to create a view and manipulate with the current cell's height and animate+display a <code>SubView</code> or do I want to manipulate with the <code>Delegate</code> and <code>DataSource</code> to simply create a condition on showing more cells if the button is pressed (which causes a <code>reloadData</code> with some kind of animation set true) ?</p> <p>I could wander around in the wilderness and mess around, but I guess that I'm not the first one to encounter such issue and that someone might have some constructive input.</p> <p><img src="https://i.stack.imgur.com/pnniZ.png" alt="in-app screenshot"></p> <p>** UPDATE ** All the interesting stuff happens in <code>indexPath.section = 0</code> so I now simply created an <code>(atomic) BOOL createFormActive</code> and manipulate cell data accordingly with my <code>didSelectRowAtIndexPath</code> looking something like this:</p> <pre><code> if (indexPath.section == 0) { self.createFormActive = !self.createFormActive; [tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic]; } </code></pre> <p>This works pretty well. So you could say I have found a solution, but feel free to use this thread as inspiration or discussion.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload