Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
- {
- CGRect original = cell.contentView.frame;
- CGRect initalFrame=original;
- CGRect bounce_offset = original;
- initalFrame.origin.y += 100.0f;
- cell.contentView.frame = initalFrame;
- [UIView animateWithDuration:0.5f delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
- cell.contentView.frame = bounce_offset;
- } completion:^(BOOL finished) {
- [UIView animateWithDuration:1.0f delay:0.0f usingSpringWithDamping:0.75f initialSpringVelocity:0.0f options:UIViewAnimationOptionCurveEaseOut animations:^{
- cell.contentView.frame = original;
- } completion:^(BOOL finished) {
- }];
- }];
- }
Add Comment
Please, Sign In to add comment