First assume that you are already skilled in using UITableView. Then we only need to implement Uitableviewdelegate in the TableView:WillDisplayCell:ForRowAtIndexPath: can. When the cell is displayed, the method is called first, so the cell is animated, in this way. (Instant explosion)
-(void) TableView: (uitableview *) TableView Willdisplaycell: (uitableviewcell *) cell Forrowatindexpath: (nsindexpath *) indexpath{
//1. Configuring the contents of catransform3d
catransform3d transform;
Transform = catransform3dmakerotation((90.0*m_pi)/in- 0.0 , 0.7 , 0.4);
Transform. M34 = 1.0/-;
//2. defining The initial state of a cell
Cell. layer. Shadowcolor = [[uicolor blackcolor]cgcolor];
Cell. layer. Shadowoffset = cgsizemake(ten );
Cell. Alpha = 0;
Cell. layer. Transform = transform;
Cell. layer. Anchorpoint = cgpointmake(0, 0.5);
//3. define The final state of the cell and commit the animation
[UIView beginanimations:@ "Transform" context:NULL];
[UIView setanimationduration:0.5];
Cell. layer. Transform = catransform3didentity;
Cell. Alpha = 1;
Cell. layer. Shadowoffset = cgsizemake(0, 0);
Cell. frame = cgrectmake(0, cell. Frame. Origin. Y, cell. Frame. Size. Width, cell. Frame. Size. Height);
[UIView commitanimations];
}
The TableView cell is animated by the broken-boat brother