UITableViewのフッターをアニメーション化しようとしています。アニメーションなしUITableViewのフッターをアニメーション化する方法
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
CustomView *footer = [[CustomView alloc]initWithFrame:CGRectZero
labelText:@"I am a label in a footer"];
footer.label.alpha = 0.0f;
[UIView animateWithDuration:5.0f
delay:0.0f
options:UIViewAnimationOptionCurveLinear
animations:^{
footer.label.alpha = 1.0f;
}
completion:nil];
return footer;
}
しかし、フッターが表示されます。 私は、次のコードを試してみました。 UITableViewのフッターをアニメーション化する正しい方法は何ですか?私はそれは可能だと信じていますが、それに対する答えを見つけることはできません。
ありがとうございます。私はあなたの答えから学んだ。 – Herbert