Skip to content

GlobakMaxim/GMLoadingEffectCell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loading effect for Table view cell

alt sample

Cell has:

  • animation duration
  • complition block
  • failure block

cellForRowAtIndexPath method look like this

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    GMLoadingTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[GMLoadingTableViewCell cellIdentifier]];
    cell.label.text = @"Cell text"
    cell.animationDuration = 2;
    cell.completionBlock = ^{
        NSLog(@"Done!");
    };
    cell.failureBlock = ^{
      NSLog(@"Fail!");
    };
    return cell;
}

Important

- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    return nil;
}

- (NSIndexPath *)tableView:(UITableView *)tableView willDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
    return nil;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published