2009-09-10 50 views
0

我开发的iPhone。我的应用程序需要animately增加的tableview单元格的宽度,当用户点击它并添加一个文本框进去。请宽度的任何一个可以帮助我Animately增加UICell

在此先感谢.....

回答

1

你可以做

[UIView beginAnimation:nil context:nil]; //(dont remember the exact call here) 
[UIView setAnimationDuration:seconds]; 
//set your cells new width 
[UIView commitAnimation]; 

上面的代码应该做的伎俩

+0

这是正确的,但是,你不能在增加中的单元格的大小因为这个单元格将被剪切到桌子的边界。 – mahboudz 2009-09-10 19:09:45

+0

对,我想你也必须让视野更宽 – Daniel 2009-09-10 19:14:24