iphone - ios - iPhone : How to create animation UItableviewcell when edit like native ios alarm clock app

标签 iphone c object ipod-touch

我制作了一个闹钟,就像 iphone/ipod 上的默认闹钟一样。但我不知道如何在像 native ios 时钟应用程序一样编辑时创建动画 UItableviewcell。请帮助我。谢谢

像这样的动画。

enter image description here

最佳答案

[tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];

http://developer.apple.com/library/ios/documentation/uikit/reference/UITableView_Class/Reference/Reference.html#//apple_ref/occ/instm/UITableView/reloadSections:withRowAnimation :

其中 UITableViewRowAnimation 可以是以下之一:

typedef enum {
UITableViewRowAnimationFade,
UITableViewRowAnimationRight,
UITableViewRowAnimationLeft,
UITableViewRowAnimationTop,
UITableViewRowAnimationBottom,
UITableViewRowAnimationNone,
UITableViewRowAnimationMiddle,
UITableViewRowAnimationAutomatic = 100
} UITableViewRowAnimation;

http://developer.apple.com/library/ios/documentation/uikit/reference/UITableView_Class/Reference/Reference.html#//apple_ref/doc/c_ref/UITableViewRowAnimation

关于iphone - ios - iPhone : How to create animation UItableviewcell when edit like native ios alarm clock app,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10911352/

相关文章:

使用 stm32f429-discovery LTDC 控制 WVGA 显示器

java - 如何获取java变量的更新值?

iphone - 释放变量时接收者类型无效

iphone - 如何在我的第二个选项卡中将 managedObjectContext 传递给 tablecontroller?

ios - 用于基于位置的图像的 Flickr API

iphone - 如何在 iPad 或 iPhone 上获取/计算分组的 UITableView 的边距宽度

c - 为什么我的 for 循环在这里变成了无限循环?

c++ - 如何找到我的进程在 Linux 中打开的文件句柄?

java - 我应该在 arraylist.add(obj) 之后做 obj = null

python - 是否有可能将对象数组(json)作为突变的输入字段传递? Graphite 烯- python