ios - 检测插入的单元格,然后让它成为FirstResponder
<p><p>对于我的自定义单元格,举个简单的例子,我只有一个 <code>UITextField</code>,有没有办法让 <code> 刚刚插入的单元格 <code>becomeFirstResponder</code> insertRowsAtIndexPaths</code> ?</p>
<p>我需要一种方法来检测这一点,以便在插入后和<strong>插入动画结束时</strong>成为第一响应者。</p>
<p>有什么想法,甚至接近吗?</p>
<p>谢谢</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>像这样的东西??</p>
<pre><code>- (void) insertRows
{
.
.
.
;
;
;
NSIndexPath p = ;
MyCustomCell *cell = ;
;
}
</code></pre></p>
<p style="font-size: 20px;">关于ios - 检测插入的单元格,然后让它成为FirstResponder,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/15926205/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/15926205/
</a>
</p>
页:
[1]