0

iPhone/iPodのデフォルトの目覚まし時計のような目覚まし時計を作りました。しかし、ネイティブのios時計アプリのように編集するときにアニメーションUItableviewcellを作成する方法がわかりません。助けてください。ありがとう

アニメーションはこんな感じ。

ここに画像の説明を入力

4

2 に答える 2

0
[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

于 2012-06-06T09:46:00.867 に答える