To run the example project, clone the repo, and run pod install from the Example directory first.
After installation, you can import the source file through #import <TableViewCellAnimations/ASTableViewCell.h>.
Then, like any other table view, make sure that the kind of table view cell in the table view is ASTableViewCell:
Wherever you choose to have the table view's delegate, make sure your implementation of cellForRowAtIndexPath: uses ASTableViewCell:
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
ASTableViewCell *cell = (ASTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"CellIdentifier"];
[cell setDuration:0.25]; //set the duration of the entrance animation
[cell addAnimation:kASTableViewCellAnimationFadeIn];
}
Make sure to actually call animate in your willDisplayCell:
-(void)tableView:(UITableView *)tableView willDisplayCell:(nonnull UITableViewCell *)cell forRowAtIndexPath:(nonnull NSIndexPath *)indexPath {
[(ASTableViewCell *)cell animate];
}
Currently, we support three different kinds of animations:
-Fade In (kASTableViewCellAnimationFadeIn)
-Slide in from left/right/top/bottom (kASTableViewCellAnimationSlideFromLeft)
-Flip horizontally/vertically (kASTableViewçellAnimationFlipHorizontally)
No requirements for this pod. Enjoy!
TableViewCellAnimations is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "TableViewCellAnimations"Adam Suskin, adam@adamsuskin.com
TableViewCellAnimations is available under the MIT license. See the LICENSE file for more info.



