How can I fade in/out a UILabel on a UITableViewCell?
I want to be able to fade in/out a couple UILabel's on my UITableView cell.开发者_如何学C How can I achieve this using CoreAnimation or an animation block?
[UIView beginAnimations:nil context:nil];
someLabel.alpha = 0;
[UIView commitAnimations];
More specifically, if you've got your labels added to the cell’s content view with a particular tag
set for each one, you can do something like
[cell.contentView viewWithTag:2].alpha = 0;
[cell.contentView viewWithTag:1].alpha = 1;
精彩评论