2009-09-10 23 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