Skip to content

Commit

Permalink
fix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
leverdeterre committed Aug 16, 2014
1 parent df087be commit 6f09afb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Binary file not shown.
16 changes: 13 additions & 3 deletions JMAnimatedImageView/JMAnimatedImageView/JMTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ - (void)didReceiveMemoryWarning

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 5;
return 6;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
Expand All @@ -58,10 +58,14 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell.jmDetailsLabel.text = @"More CPU time to load / reload images but less memory used.";

} else if (indexPath.row == 3) {
cell.jmLabel.text = @"AUTOMATIC ANIMATION : using JMAnimatedImageView with transition";
cell.jmDetailsLabel.text = @"More CPU time to load / reload images but less memory used.";

} else if (indexPath.row == 4) {
cell.jmLabel.text = @"REALTIME ANIMATION : using JMAnimatedImageView (Low memory usage)";
cell.jmDetailsLabel.text = @"Swipe left / Right to manage the animation.";

} else if (indexPath.row == 4) {
} else if (indexPath.row == 5) {
cell.jmLabel.text = @"SIMPLE CAROUSEL : using JMAnimatedImageView (Low memory usage)";
cell.jmDetailsLabel.text = @"Swipe left / Right";
}
Expand All @@ -85,11 +89,17 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
vc.memoryManagementOption = JMAnimatedImageViewMemoryLoadImageLowMemoryUsage;
vc.useJMImageView = YES;
} else if (indexPath.row == 3) {
vc.animationType = JMAnimatedImageViewAnimationTypeAutomaticLinear;
vc.memoryManagementOption = JMAnimatedImageViewMemoryLoadImageLowMemoryUsage;
vc.useJMImageView = YES;

} else if (indexPath.row == 4) {
vc.animationType = JMAnimatedImageViewAnimationTypeManualRealTime;
vc.memoryManagementOption = JMAnimatedImageViewMemoryLoadImageLowMemoryUsage;
vc.order = JMAnimatedImageViewOrderReverse;
vc.useJMImageView = YES;
} else if (indexPath.row == 4) {

} else if (indexPath.row == 5) {
vc.animationType = JMAnimatedImageViewAnimationTypeManualSwipe;
vc.memoryManagementOption = JMAnimatedImageViewMemoryLoadImageSystemCache;
vc.order = JMAnimatedImageViewOrderReverse;
Expand Down

0 comments on commit 6f09afb

Please sign in to comment.